I keep getting a 'server error' returned when I try to send mail.
I'm using Win98, PHP4, and Apache/1.3.12.
I've set up my php.ini with the following settings:
SMTP mail.moose.co.uk
sendmail_from mak@moose.co.uk sendmail_path no value
the code i'm using is just a hardwired tester as follows:
<?
$to = "mak@moose.co.uk";
$subject = "subject header";
$msg = "message text";
$headers = "From: mak@moose.co.uk\r\nReply-To: someoneelse@mycompany.com";
mail("$to", "$subject", "$msg", "$headers");
echo "finished!";
?>
is there a problem with my SERVER_NAME setting? (which is currently set to: IMakgill@axongroup.co.uk). If this is a problem, how do I change this setting, it is not part of the php.ini?
or should I have a word with my ISP? If so, what should I ask them?
any help would be greatly appreciated.
Cheers,
Ian