diff options
-rw-r--r-- | app/Core/Mail/Transport/Mail.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Core/Mail/Transport/Mail.php b/app/Core/Mail/Transport/Mail.php index 0d819f77..0fc278d1 100644 --- a/app/Core/Mail/Transport/Mail.php +++ b/app/Core/Mail/Transport/Mail.php @@ -36,6 +36,11 @@ class Mail extends Base implements ClientInterface ->setFrom($this->helper->mail->getMailSenderAddress(), $authorName) ->setTo(array($recipientEmail => $recipientName)); + $headers = $message->getHeaders(); + + // See https://tools.ietf.org/html/rfc3834#section-5 + $headers->addTextHeader('Auto-Submitted', 'auto-generated'); + if (! empty($authorEmail)) { $message->setReplyTo($authorEmail); } |