Replies: 0
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( 'myemail@gmail.com', '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] => myemail@gmail.com
)
[subject] => Test
[message] => test
[headers] => Array
(
)
[attachments] => Array
(
)
[phpmailer_exception_code] => 2
)
)
)
- This topic was modified 1 hour, 11 minutes ago by felzend.