I set up a sendmail smarthost to relay all outgoing mail to my server but my php mail() scripts don't seem to pick up on that. Do I somehow have to specify a mail server is my script?
Thanks, John
the only settings you need for PHP mail() to work is for the mail settings in the php.ini file to be correct.
In php.ini SMTP is for windows and the sendmail command parameter is for *nix servers.
but it seems to me that in linux it uses localhost to sendmail I need it to use a different domain
--John
I am not an expert in sendmail, but then you would need your localhost to relay all sendmail request to the other domain.
If all else fails you can not use mail() but use the package PHPMailer.
Yes but here is the weird thing. When I send the mail in my webmail using the mail() function it never gets recieved. But if I go to an external mail program and try to send it gets recieved.