Re: Mail() Problem Sending

From: Date: Tue, 19 Aug 2003 09:57:36 +0000
Subject: Re: Mail() Problem Sending
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159995@lists.php.net to get a copy of this message
"Cesar Aracena" <lists@icaam.com.ar> wrote in message news:003601c36600$5a2cbb60$fe00a8c0@seaing.seaingenieria.com... [snip] > For some e-mail servers, you have to write lots of "extra headers" in > the e-mails in order to pass their guard. [/snip] True! But actually, I' ve seen people using only the 'From:' header to send mail. Emails can then be dropped easily by servers thinking it is spam. Ben, I don't know what headers you send, but you could try these headers: $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/plain; charset=iso-8859-1\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-MSMail-Priority: Normal\r\n"; $headers .= "X-Mailer: PHP/".phpversion()."\r\n"; $headers .= "From: Name <email@example.org>\r\n"; $headers .= "Reply-to: Name <email@example.org>\r\n"; $headers .= "Return-path: Name <email@example.org>\r\n"; $headers .= "Error-to: Name <email@example.org>\r\n"; mail("Yourname <Your_Email@example.org>", "Subject", $body, $headers); HTH, Ivo

« previous php.general (#159995) next »