Author Topic: trouble with php mail()  (Read 1802 times)

liberate

  • Posts: 7
    • View Profile
trouble with php mail()
« on: July 20, 2007, 04:07:55 pm »
If php mail() is sending to an email address within my domain... it works.

If php mail() is sending to an email address outside of my domain it doesn't work.

I tried the little php mail() test script and it did not come back with any error, and asks "did you get it".  Answer: Yes if my domain... And No if any other domain.

Running on cpanel.

Edit----- php mail() has sent to email addresses of other domains, I have confirmations from testing the setup on  my main ISP email address which is not my domain. So it worked before but now it doesn't.  


Any thoughts?


On another topic:
Cron is not working, Bounce.cgi is not working.

I just found another one of your handy scripts, the one that finds wget..... Here's the result:

"Warning: shell_exec() has been disabled for security reasons in /home/liberate/public_html/findwget.php on line 2"

So I guess we know why cron and bounce.cgi are not working!!

I have read in the forum about putting a copy of wget on your domain..... Where do I find a copy of wget???

The sticky message about wget being disable by host has a different cron..
57 23 * * * curl -o /dev/null http://example.com/mail/dailymail.php?pw=YOURPASS 2> /dev/null

So I am runnng it now.   Edit..... I used cpanel's latest visitor log to find out the time on the host server. Looks like PST. Based on the time on the server I reset the Cron for 10 minutes later. Waited and did not receive a cron update email. Dailymail shows that cron has not run.  


What about bounce.cgi ? Is there a work-a-round for to get bounce.cgi to work with out wget?

Thanks
Tom

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
trouble with php mail()
« Reply #1 on: July 20, 2007, 08:40:57 pm »
Hi Tom,

f bounce is disabled you will want to make sure your Administrator Email is an address on the ListMail domain. Otherwise, make sure the "Bounce to Email" is on the ListMail domain.

On some hosts every email address used in ListMail needs to exist in your control panel as a mailbox or forwarder.

If you still can't get email out you may want to talk to your provider and have them investigate.

The test script is good, but you can also test whether PHP mail() works or not by simply manually adding a user to ListMail with the welcome message enabled.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting