Mail();

From: Date: Mon, 02 Jun 2003 11:34:48 +0000
Subject: Mail();
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354174@lists.php.net to get a copy of this message
Bug in: http://cz.php.net/manual/en/function.mail.php Example 2. Sending mail with extra headers. mail("nobody@example.com", "the subject", $message, "From: webmaster@$SERVER_NAME\r\n" ."Reply-To: webmaster@$SERVER_NAME\r\n" ."X-Mailer: PHP/" . phpversion()); ----------- That's not correct mail header (see RFC822, STD3). Right way is: mail("nobody@example.com", "the subject", $message, "From: <webmaster@$SERVER_NAME>\r\n" ."Reply-To: <webmaster@$SERVER_NAME>\r\n" ."X-Mailer: PHP/" . phpversion()); Zbynek Vyboh

« previous php.doc (#969354174) next »