Results 1 to 4 of 4
Thread: PHP Sendmail & Cpanel Tip
Aug 7, 2007, 07:54 #1
- Join Date
- Jan 2004
- uk, Leeds (area)
- 2 Post(s)
- 1 Thread(s)
PHP Sendmail & Cpanel Tip
I've noticed fairly recently that when using php to send an email (with a script using mail() ) it does not work. It looks like the email has been sent but infact the email has not been sent. Whats confusing is their is no error message which does suggest that it has worked.
Now I may have found (or at least it works for me) two ways you can check to solve the problem.
- Make sure the message within the script starts and ends with double quotes "message goes here". I think the email address does not matter too much, but try either single or double.
- This will not be obvious and it took me two days and another web host to figure out this. After checking the above the email was still not sent. The problem was that the email account I was using did not exist, so I made one through cPanel and bingo it worked.
spence"Don't you just love it when you solve a programming bug only to create another."