Re: mail headers

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

 



Schalk wrote:
Greetings Everyone,

What in the piece of code below might be causing the headers for from and reply-to to be set incorrectly?

'
$headers = "MIME-Version: 1.0\r\n".
"Content-type: text/html; charset=iso-8859-1\r\n".
"From: ".$email."\r\n".
"Reply-to: ".$email."\r\n".
"Date: ".date("r")."\r\n";
'

Using Thunderbird on XP it does set the from correctly but then uses the default from address set in php.ini for the reply-to. Any ideas? Thanks!


There's a default for reply-to in the php.ini? What's the variable called - I can't see one. I can see these:

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = me@xxxxxxxxxxxxx

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =


but they have nothing to do with the reply-to address.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
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