Re: [PHP-WIN] How to make mail() use correct headers?

2005-07-11 Thread Ross Honniball
I haven't looked to see exactly what headers it produces, but using: $old = ini_set('sendmail_from', '[EMAIL PROTECTED]'); before you use the mail() function works for me. anton wrote: Hello, Our windows server has sendmail_from set to null in ini. We are hosting many domains, and having a si

Re: [PHP-WIN] How to make mail() use correct headers?

2005-07-11 Thread anton
Hello, Thank you. i tried that too. Does not help. Same thing. -- Best Regards, Anton ""Rodrigo"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try using the extra PHP parameter: > > > mail($mailto, $mailsubject, $mailmessage, $mailheaders, "-f".$mailfrom); > or > mail($mailto,

RE: [PHP-WIN] How to make mail() use correct headers?

2005-07-11 Thread Rodrigo
Try using the extra PHP parameter: mail($mailto, $mailsubject, $mailmessage, $mailheaders, "-f".$mailfrom); or mail($mailto, $mailsubject, $mailmessage, $mailheaders, "[EMAIL PROTECTED]"); This user has to be added to the /etc/mail/trusted-users otherwise an X-Warning header will be added to the

[PHP-WIN] How to make mail() use correct headers?

2005-07-11 Thread anton
Hello, Our windows server has sendmail_from set to null in ini. We are hosting many domains, and having a single address there makes no sense. With null all mails that go out through our mailserver do not get a from address. The from address is only ommunicated with additional mail headers when u