[thelist] php mail() function

jan guichelaar [artmiks] jan at artmiks.nl
Mon Feb 23 08:19:01 CST 2004


Hi All

I've used the php mail() function a dozen times, without any problems.
Now i want to use it at another server/host, but i can't get it to work.

I use this script:

<?php
if (!mail("jan at artmiks.nl", "test subject", "testline")) {
 echo 'mail failed';
} else {
 echo 'mail send';
}
?>

It returns 'mail send' , but i don't get anything in my mailbox :-((
The only difference i found between the other servers i worked on an this
one is
in the phpinfo() at the sendmail_path.

Normally it says :
 sendmail_path = /usr/sbin/sendmail -t -i

But now it says:
 sendmail_path = /usr/sbin/sendmail -t -i -f
webmaster at hostname.com -Fwww.hostname.com

Anybody now if this is the problem and how i solve this, or can anyone point
me in the right direction for a solution?

thanx

Jan
jan at artmiks.nl

====================
Artmiks [image builders]
http://www.artmiks.nl
====================
recent projects
http://www.poppelaars.com
http://www.stang.nl
http://www.marryyourpet.com
====================



More information about the thelist mailing list