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 5161

wp_mail() doesn’t use settings from WP Mail SMTP plugin

$
0
0

Replies: 0

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 “noreply@testmail.com”. 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 all articles
Browse latest Browse all 5161

Trending Articles