Mail sending only works on Test
-
My mail is only sent on the Mail Test, which I configured for using OTHER SMTP through gmail. In fact I receive my Test Mail, but when I try to use “wp_mail” function, it won’t sent. I’ve debugged and what is shown is below.
What may be happening? I’m calling “wp_mail” function like this:
wp_mail( '[email protected]', 'Test', 'test' );
[01-Mar-2018 00:53:22 UTC] WP_Error Object ( [errors] => Array ( [wp_mail_failed] => Array ( [0] => Could not instantiate mail function. ) ) [error_data] => Array ( [wp_mail_failed] => Array ( [to] => Array ( [0] => [email protected] ) [subject] => Test [message] => test [headers] => Array ( ) [attachments] => Array ( ) [phpmailer_exception_code] => 2 ) ) )
- The topic ‘Mail sending only works on Test’ is closed to new replies.