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?