How to check whether the mail has been successfully send using mail function in php?
Please any one tell me.......Thanks
PHP
Started by php programmer, May 31 2010 11:54 PM
1 reply to this topic
#1
Posted 31 May 2010 - 11:54 PM
|
|
|
#2
Posted 02 June 2010 - 12:52 AM
According to PHP: mail - Manual it returns a boolean value: "Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise."
so more or less, you can do:
so more or less, you can do:
if (mail(...)) {
echo "success";
} else {
echo "failure";
}
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall


Sign In
Create Account

Back to top









