Re: Re: mail header questions
| From: | Chris | Date: | Thu, 30 Nov 2006 06:25:52 +0000 |
| Subject: | Re: Re: mail header questions | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245329@lists.php.net to get a copy of this message | ||
Chantal Rosmuller wrote:
On Wednesday 29 November 2006 00:45, Chris wrote: you will most likely change whatStrange - I use postfix on my dev server and it works fine. Are you running anything non-default in postfix (eg chroot) ? -- Postgresql & php tutorials http://www.designmagick.com/Hi Chris, The return path works now, $mainmail comes from a different file config.php that is included. $mainmail is also used for the return-path and that works so $mainmail being empty is also not the problem. The strange thing is that even the fifth parameter solution doesn't work. I use Postfix as MTA by the way.I forgot to mention that I can't set the return-path either.That can *only* be an email address - you can't include a "name" in the return-path. Also it can't be changed if safe-mode is on for the server. From your code, where does $mainmail come from? It's not in the code you posted at all. $headers .= "From: $mainmail \r\n"; -- Postgresql & php tutorials http://www.designmagick.com/