Skip to content
Browse files

Fixed new line characters for postfix

  • Loading branch information...
1 parent 835bede commit d1002b951b7984ed58df3a78c8ba8899538d622d @abrenner abrenner committed Apr 29, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 contactMailer.php
View
13 contactMailer.php
@@ -52,13 +52,14 @@ private function _isValidEmail($email) {
}
private function _sendEmail() {
- $headers = 'MIME-Version: 1.0' . "\r\n";
-// $headers .= 'Content-type: text; charset=iso-8859-1' . "\r\n";
- $headers .= "Content-type: text/plain; charset=iso-8859-1" . "\r\n";
- $headers .= 'From: '.$this->name.' <'.$this->email.'>' . "\r\n";
- $headers .= 'X-Mailer: php';
+ $headers = "MIME-Version: 1.0\n";
+// $headers .= 'Content-type: text; charset=iso-8859-1' . "\n";
+ $headers .= "Content-type: text/plain; charset=iso-8859-2\nContent-Transfer-Encoding: 8bit\nX-Priority: 1\nX-MSMail-Priority: High\n";
+ $headers .= "From: ".$this->name." <".$this->email.">\n";
+ $headers .= "Reply-To: ".$this->email."\n";
+ $headers .= "X-Mailer: PHP/". phpversion() . "\n";
- mail($this->sendEmailTo, $this->subject, $this->message, $headers);
+ mail($this->sendEmailTo, $this->subject, wordwrap($this->message), $headers);
$this->status = TRUE;
}

0 comments on commit d1002b9

Please sign in to comment.
Something went wrong with that request. Please try again.