I'm using mail() to send a newsletter. I've added a simple if($mail true){echo mail sent)else{echo mail not sent} error message, but this (obviously) doesn't tell me why the mail wasn't sent.
I need the real error sent to standard out.
Thanks B
The real problem is: php sends this mail to the smtp-queue. if this is successful, "1" is returned.
PHP does not care, what the SMTP may do with this mail.
How about errors that cause mail() to return false. Anyway to get out what caused the failure?
That's the problem that I'm having.