$from = "your@email.com"; $header = "From: $from\r\n"; $header .= "Content-Type: text/html; charset=utf-8\r\n"; $header .= "Date: ".date("r")."\r\n"; $header .= "Reply-To: $from\r\n"; $header .= "Return-Path: $from\r\n"; $header .= "X-Mailer: PHP\r\n";I'll test it now, when this post reaches my newsletter subscribers.
UPDATE: http://dev.kafol.net/2009/09/php-mail-sender-domain-must-exist.html
UPDATE #2: http://dev.kafol.net/2013/01/sendmail-x-authentication-warning-user.html
No comments:
Post a Comment