Skip to content

Ability to use 3rd party email service#128

Merged
armanist merged 2 commits into
quantum-php:masterfrom
hatik92:master
Feb 2, 2023
Merged

Ability to use 3rd party email service#128
armanist merged 2 commits into
quantum-php:masterfrom
hatik92:master

Conversation

@hatik92

@hatik92 hatik92 commented Jan 30, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

@hatik92 hatik92 requested a review from armanist January 30, 2023 13:38
@codecov

codecov Bot commented Jan 30, 2023

Copy link
Copy Markdown

Codecov Report

Merging #128 (090ecf7) into master (ae0a4af) will decrease coverage by 0.54%.
The diff coverage is 18.51%.

@@             Coverage Diff              @@
##             master     #128      +/-   ##
============================================
- Coverage     70.33%   69.80%   -0.54%     
- Complexity     1735     1747      +12     
============================================
  Files           147      149       +2     
  Lines          4396     4434      +38     
============================================
+ Hits           3092     3095       +3     
- Misses         1304     1339      +35     
Impacted Files Coverage Δ
src/Libraries/Auth/AuthManager.php 0.00% <0.00%> (ø)
...rc/Libraries/Mailer/Adapters/SendinblueAdapter.php 0.00% <0.00%> (ø)
src/Libraries/Mailer/Adapters/SmtpAdapter.php 0.00% <0.00%> (ø)
src/Libraries/Mailer/Mailer.php 72.35% <33.33%> (-6.08%) ⬇️
src/Console/Commands/ServeCommand.php 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment thread src/Libraries/Mailer/Mailer.php Outdated
$this->mailer->AllowEmpty = true;
$this->mailer->isHTML(true);
} elseif (config()->get('mailer')['current'] == 'sendinblue') {
$this->api_key = config()->get('mailer')['sendinblue']['api_key'];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use dot access instead of array access

return $sent;
} else {
return $this->mailer->send();
$this->htmlContent = $body;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the meaning of the property $htmlContent ?

Comment thread src/Libraries/Mailer/Mailer.php Outdated
$this->mailer->Port = config()->get('mail_port');
$this->mailer->Username = config()->get('mail_username');
$this->mailer->Password = config()->get('mail_password');
$this->mailer->Host = config()->get('mailer')['default']['mail_host'];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use dot access everywhere

@hatik92 hatik92 requested a review from armanist February 2, 2023 11:58
@armanist armanist merged commit 3a5ecd4 into quantum-php:master Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants