Welcome to WebmasterWorld Guest from 54.225.33.25

Forum Moderators: mack

Message Too Old, No Replies

PHP form mailer

     
7:59 pm on Jan 13, 2009 (gmt 0)

New User

5+ Year Member

joined:Jan 5, 2009
posts: 34
votes: 0


PHP is setup to send emails automatically when certain actions take place with users' accounts. This worked perfectly before migrating to a new server so I don't think it is a scripting issue. Everything I can find on it seems to point to PHP not needing to have any paths listed in it for this to work and that it should be able to figure it out on it's own. I've updated the information on the server to point to our mail server. No errors are returned and it seems as though everything is going through properly, but no emails end up going out. Any ideas? I've tried setting up a form mailer page just to make sure that it wasn't a scripting issue, but that did not work as well. Is there a bare bones form that could be set up to see what error message we get back?
9:33 pm on Jan 13, 2009 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4843
votes: 2


Have you tried running the simple mailer script from the command line?

I've recently had the same problem, remedied with a (non-PHP) module being installed. I only found out the problem after trying from the command line, as running from HTTP produced no PHP errors.

4:24 am on Jan 14, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


This may be trivial . . did you try putting this at the top of the scripts temporarily?

error_reporting(E_ALL);
ini_set('display_errors', '1');

3:01 pm on Jan 14, 2009 (gmt 0)

New User

5+ Year Member

joined:Jan 5, 2009
posts:34
votes: 0


Thanks for the replies, but I just heard from GoDaddy. They had given me the wrong domain for the mail server to put into the settings for my server. Now that that is correct everything works well.