Jump to content

Recommended Posts

Posted

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.

Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...