Skip to content

Commit

Permalink
fix #41 use no-reply@server as from header
Browse files Browse the repository at this point in the history
  • Loading branch information
nliautaud authored Jan 27, 2019
1 parent eedd801 commit 4650c3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions p01-contact/src/P01contact_Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,8 @@ public function sendMail()
private function mailHeaders($name, $email, $mime_boundary)
{
$encoded_name = $this->encodeHeader($name);
$headers = "From: $encoded_name";
$headers = "From: $encoded_name <no-reply@" . SERVERNAME . ">\n";
if ($email) {
$headers .= " <$email>\n";
$headers .= "Reply-To: $encoded_name <$email>\n";
$headers .= "Return-Path: $encoded_name <$email>";
}
Expand Down

0 comments on commit 4650c3a

Please # to comment.