Take a look at the code you are using. If you aren’t using all of the
variables in your call to the mail function, you might want to do that.
mail($to,$subject,$body,$headers,$extra)
$to, $subject, and $body are hopefully self-explanatory.
In $headers, send a newline-separated string of headers. I usually
send at least From: headers, which look like this:
From: "Person Name" <person @ domain.com>
(without the spaces, naturally.)
In the $extra field, be sure to add an -f flag, meaning sendmail
from. It should look like this:
-fperson @ domain.com
(no spaces around the at sign, again, but note also no space between
the -f flag and the address that follows it.
Walter
On Mar 13, 2008, at 4:32 PM, johnrob wrote:
Hi,
Sorry for being a bit off-topic.
I have an account with Have-Host which supports PHP/MySQL etc.
Any mail() statement sent from within a PHP never gets received by
the recipient. I wonder if anyone else is using this in Have-Host
and can shed any (configuration) light on the matter?
James@Have-Host has tried to help and pointed me in some useful
form script directions but I really want to get this working within
PHP is possible.
Thanks,
John
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options