Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: How to track an event
02-07-2014, 01:10 PM #1
- Join Date
- Nov 2009
- Thanked 0 Times in 0 Posts
How to track an event
The line of code below is not working.
sendMail($to,$name, $subject, $from, $message);
All variables tested just below the line with echo command. I see no reason for it not to work.
I have more of this code in other parts of the .php and it works fine.
No error message as I run the page. But the e-mail is not sent.
It there a way to track this line of code to see details of what is happening to it ?
Something as see a log file of this event or even erros stored to a variable ?
02-07-2014, 02:57 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
SendMail isn't a PHP function. Assuming that the error handling is correct (since there is no code definition here I can only assume) and the mail verified as queued, than this isn't a PHP issue, its an issue with the smtp server. You can check your smtp error logs to see what it did with the message.PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');