• I installed and setup the plugin a while ago. Everything works great. New users, new orders and any kind of email notification are sent from the custom SMTP I used.

    However, I had to use the buildin function wp_mail for a custom event notification and the sender is as “[email protected]”. So, the mail fails to reach the destination.

    
        $to = 'email1,email2,email3';
        $subject = 'This is a subject';
        $body = 'Here is a body';
        $body .= '<br><br><br>';
        $body .= 'Let's add another body';
        $headers = array('Content-Type: text/html; charset=UTF-8');
     
        wp_mail( $to, $subject, $body, $headers );
    

    Any idea what is going wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Hi,

    Does it fail to reach all email inboxes or just some (like 2nd and further)? Because I see, that you are using a comma separated list of emails.

    Thread Starter dantekavala

    (@dantekavala)

    It fails for every email in the list. Is there any test I can do to help you?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_mail() doesn’t use settings from WP Mail SMTP plugin’ is closed to new replies.