Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Mailer] Use recipients in sendmail transport #45690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Mar 9, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #41149
License MIT
Doc PR -

Supersedes #41150

@carsonbot carsonbot added this to the 4.4 milestone Mar 9, 2022
@HypeMC HypeMC marked this pull request as draft March 10, 2022 09:03
@HypeMC HypeMC force-pushed the sendmail-recipients-fix branch from 8958239 to 435d84b Compare March 10, 2022 09:47
@HypeMC HypeMC marked this pull request as ready for review March 10, 2022 09:54
@carsonbot
Copy link

Hey!

I think @l-vo has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@HypeMC HypeMC force-pushed the sendmail-recipients-fix branch 2 times, most recently from bd7c8e6 to 4f3a89a Compare March 13, 2022 22:45
@@ -86,6 +86,11 @@ protected function doSend(SentMessage $message): void
$this->getLogger()->debug(sprintf('Email transport "%s" starting', __CLASS__));

$command = $this->command;

if (!empty($recipients = $message->getEnvelope()->getRecipients())) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (!empty($recipients = $message->getEnvelope()->getRecipients())) {
if ($recipients = $message->getEnvelope()->getRecipients()) {

@fabpot
Copy link
Member

fabpot commented Mar 18, 2022

Thank you @HypeMC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants