Hi all,
I've just set up a sendmail program called postcast which works fine.
I had problems getting mail() to work with this code: -
<?
echo ("your details will be e-mailed to you");
mail($to, $subject, $body);
?>
The browser came back with 'unknown error on line 12' (the line with the mail function).
Adding these lines to the top of the script removes the error and mail() works perfectly.
ini_set("SMTP", "rgoweb");
ini_set("sendmail_from", "cjb@xyz.com");
Does anyone know why this worked? - these lines are set to the same values in php.ini
I don't really have a problem anymore but I don't like inserting solutions I don't understand.
Thanks for any suggestion of why (I'm using php4 on win32 Apache)
Chris