I am trying to set custom From name and email in
wp_mail headers but somehow,
wp_mail ignores the name but gets the email correctly.
This is the headers code I am using.
$headers = array( 'Content-Type: text/html; charset=UTF-8', 'From: Michelle Titus <email@example.com>' );
I am not using such plugins which can alter the data. However, I am using GravityForms which I don't think should conflict with what I have here.
I cannot use the
wp_mail_from_email because the
wp_mail is called dynamically with different From data each time. Maybe I can put some conditional logic but I thought I should ask for a better solution.
And there's no question resembling my issue anywhere, as far as I searched Google.