Skip to content

Add replyTo to message and mandrill mailer#6

Merged
aprokopenko merged 3 commits intojustcoded:masterfrom
Aleksey-Fedorenko:master
Jul 31, 2018
Merged

Add replyTo to message and mandrill mailer#6
aprokopenko merged 3 commits intojustcoded:masterfrom
Aleksey-Fedorenko:master

Conversation

@Aleksey-Fedorenko
Copy link
Contributor

No description provided.

Copy link
Contributor

@aprokopenko aprokopenko left a comment

Choose a reason for hiding this comment

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

Please update code according to comments

and

please add ReplyTo header to PHPMailer implementation as well

if (0 < $message->getAttachmentsSize() && $message->getAttachmentsSize() < $this->attachmentsSizeLimit
&& $attachments = $message->getAttachments()
) {
if (0 < $message->getAttachmentsSize() && $message->getAttachmentsSize() < $this->attachmentsSizeLimit && $attachments = $message->getAttachments()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

please return back previous formatting. the line is too big.

'subject' => $message->getSubject(),
'from_email' => $message->getFrom()->getEmail(),
'from_name' => $message->getFrom()->getName(),
'headers' => ['Reply-To' => $message->getReplyTo()->getEmail()],
Copy link
Contributor

Choose a reason for hiding this comment

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

you should check for !empty.

@aprokopenko aprokopenko merged commit ca433df into justcoded:master Jul 31, 2018
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