Configure From Name
-
Hi,
I’m using your plugin in my WordPress website.
And I use it to send email.
But emails received was from : Root User [email protected].
I’ve tried to override this by using filters wp_mail_from_name and wp_mail_from. Or by overriding headers in wp_mail call. But nothing was working.
I’ve looked at your plugin code. In phpmailer_init_smtp() (in mailjet-class.php), the “from” was init like this :
$phpmailer->From = $from_email;
So only the email set in the plugin settings was used. There was no from name.
I’ve replaced this line by :
$phpmailer->setFrom($from_email, get_bloginfo('name'));
And now, emails received are from : My website name [email protected]
It would be great to have an input to configure the from name in your plugin settings. And if it’s not set, to use blog name by default.
Thanks
- The topic ‘Configure From Name’ is closed to new replies.