wp_mail() doesn’t use settings from WP Mail SMTP plugin
-
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)
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.