Determine if message is send or not
-
Hi!
I’m wondering whether this is a proper way to determine if wp_mail (phpmailer) has send a message or not?
if ( wp_mail($to, $subject, $message, $headers) ) == true { echo 'message send'; } else { echo 'message not send'; }
It seems to work though. Tested it on local install and live server.
Guido
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Determine if message is send or not’ is closed to new replies.