How to get mail error description?

the mail() function

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Wed Mar 08, 2006 7:39 am

How to get mail error description?

Postby DeVrije » Wed Mar 08, 2006 8:29 am

I want to know what kind of error message is given after my mail function, but I still do not know how. For example in PHP code:

if (mail(..., ..., ..., ...)
echo 'Sent out successfully';
$wrk = ???;
echo 'Cannot be sent out because of ' . $wrk . '.';

Thank you very much for your help!

With kind regards of Jan de Vrije.

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 2 guests