I'm trying to get PHP mail to work... it was working, but somewhere over the last month or so it stopped. I've compiled a test script to check things out:<br /><br />================<br /><?php<br /><br />$mail = mail("[email protected]", "test subject","test body", "From: test<[email protected]>");<br /><br />if(!$mail){<br />echo '<font color="red">failed</font>';<br />} else {<br />echo '<font color="#00FF00">success</font>';<br />}<br /><br />?><br />================<br /><br />When I run this script, it produces "success". However, the mail never arrives. I contacted TCH support and they said the following error (below) was occuring, and to use the forums for more info. A search of the forums on keywords from the error produced no results.<br /><br />2008-01-07 12:16:46 xxxxx-0008WR-Hq <= <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> U=nobody P=local S=<removed><br />2008-01-07 12:16:46 xxxxx-0008WR-Hq ** <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> R=checkspam2: Gid 99 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.<br /><br />Any idea how I can change the script to work? Thanks.<br /><!--content-->
drtravix,<br /><br />Try sending it now. Looks like there was an update that was trapping mail and this should be fixed. I also posted back in your ticket.<br /><br /><!--content-->
<!--quoteo(post=218560:date=Jan 7 2008, 01:43 PM:name=TCH-Jesse)--><div class='quotetop'>QUOTE (TCH-Jesse @ Jan 7 2008, 01:43 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=218560"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->drtravix,<br /><br />Try sending it now. Looks like there was an update that was trapping mail and this should be fixed. I also posted back in your ticket.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Issue fixed, thanks for the help!<!--content-->
drtravix,<br /><br />Try sending it now. Looks like there was an update that was trapping mail and this should be fixed. I also posted back in your ticket.<br /><br /><!--content-->
<!--quoteo(post=218560:date=Jan 7 2008, 01:43 PM:name=TCH-Jesse)--><div class='quotetop'>QUOTE (TCH-Jesse @ Jan 7 2008, 01:43 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=218560"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->drtravix,<br /><br />Try sending it now. Looks like there was an update that was trapping mail and this should be fixed. I also posted back in your ticket.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Issue fixed, thanks for the help!<!--content-->