<?
$to ="them@theirsite.com";
$subject="A Subject";
$msg ="A Message";
$from ="me@mysite.com";
ini_set ("SMTP", "mail.mysite.com"
;
mail("$to","$subject","$msg","From: $from"
;
?>
My ISP (uplinkearth) recently made some changes which required me to change PHP code to add the ini-set line shown above.
Prior to this change the code worked regardless of whether the "to" or "from" was from an email @mysite.com.
Since the change it works if the mail is "to" an address at @mysite.com but does not work if the "from" is an address at @mysite.com and the "to" is not.
sendmail_from is set to me@loacalhost.com in the php ini file.
Any ideas?
Clive
$to ="them@theirsite.com";
$subject="A Subject";
$msg ="A Message";
$from ="me@mysite.com";
ini_set ("SMTP", "mail.mysite.com"

mail("$to","$subject","$msg","From: $from"

?>
My ISP (uplinkearth) recently made some changes which required me to change PHP code to add the ini-set line shown above.
Prior to this change the code worked regardless of whether the "to" or "from" was from an email @mysite.com.
Since the change it works if the mail is "to" an address at @mysite.com but does not work if the "from" is an address at @mysite.com and the "to" is not.
sendmail_from is set to me@loacalhost.com in the php ini file.
Any ideas?
Clive