Re: mail headers
| From: | Chris | Date: | Wed, 26 Jul 2006 04:47:46 +0000 |
| Subject: | Re: mail headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239785@lists.php.net to get a copy of this message | ||
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@localhost.com ; 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/