drtravix Posted January 7, 2008 Posted January 7, 2008 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: ================ <?php $mail = mail("removed@gmail.com", "test subject","test body", "From: test<test@removed.com>"); if(!$mail){ echo '<font color="red">failed</font>'; } else { echo '<font color="#00FF00">success</font>'; } ?> ================ 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. 2008-01-07 12:16:46 xxxxx-0008WR-Hq <= nobody@serverxx.tchmachines.com U=nobody P=local S=<removed> 2008-01-07 12:16:46 xxxxx-0008WR-Hq ** xxxxxxxxx@gmail.com R=checkspam2: Gid 99 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail. Any idea how I can change the script to work? Thanks. Quote
TCH-James Posted January 7, 2008 Posted January 7, 2008 drtravix, 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. Quote
drtravix Posted January 7, 2008 Author Posted January 7, 2008 drtravix, 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. Issue fixed, thanks for the help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.