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 = [EMAIL PROTECTED]

; 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

Reply via email to