RE: mail() silly question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



no difference

bastien







----------------------------------------> Date: Sat, 1 Sep 2007 08:00:11 -0500> From: balpo@xxxxxxx> To: php-general@xxxxxxxxxxxxx> Subject:  mail() silly question>> I have a question that might be too silly for those of you who are PHP> gurus.>> Here it comes:>> I had a mail (specifically in the headers) function call like this:>> $header = "";> $header .= 'From: info@xxxxxxxxxxxxxxxxxxxx\r\n";> $header .= 'MIME-Version: 1.0\r\n";> $header .= 'Content-type: text/html; charset=iso-8859-1\r\n";> $header .= "Reply-To: ".utf8_decode($nombreVar)."> ".utf8_decode($apellidosVar)."\r\n";> $header .= "X-Mailer: PHP/".phpversion()."\r\n";> $header .= "X-Priority: 1";>> and the mail(...) function always returned TRUE, but the mail was NOT sent.>> After hours of... trial/error debugging, I noticed from an example that> it should be:>> $header = "";> $header .= 'From: info@xxxxxxxxxxxxxxxxxxxx' . "\r\n";> $header .= 'MIME-Version: 1.0' . "\r\n";> $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";> $header .= "Reply-To: ".utf8_decode($nombreVar)."> ".utf8_decode($apellidosVar)."\r\n";> $header .= "X-Mailer: PHP/".phpversion()."\r\n";> $header .= "X-Priority: 1";>> Question:>> Why? What's the real difference between> $header .= 'From: info@xxxxxxxxxxxxxxxxxxxx' . "\r\n";> and> $header .= 'From: info@xxxxxxxxxxxxxxxxxxxx\r\n";>> ?> If somebody knows, please let me know!>> Thank you in advance.>> --> PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php>

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux