Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5030

Mail sending only works on Test

$
0
0

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.

Viewing all articles
Browse latest Browse all 5030


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>