rohmann / global-smtp

WordPress Global SMTP
62 stars 27 forks source link

Uses different email as sender #2

Closed Surbma closed 10 years ago

Surbma commented 10 years ago

Hi,

I'm still testing the plugin and I just recognized a very strange issue. The GLOBAL_SMTP_FROM is not defined, so it should use the Multisite network admin email address, which is ugyfelszolgalat@premiumwp.hu. But it sends out email as wordpress@premiumwp.hu. I don't know where is this set, I'm not using this email address.

As you know, I have commented out two lines in the plugin:

//$phpmailer->From = GLOBAL_SMTP_FROM;
//$phpmailer->FromName = GLOBAL_SMTP_FROM_NAME;

Thank you for your support!

Surbma commented 10 years ago

I add the following experience: every site's notification is sent as wordpress@sitedomain.com, where the sitedomain.com is the site's actual domain. So the first part is always "wordpress" and after the "@" comes the site domain name.

This is actually not a problem, but I'd like to know, how can this setting be changed? If it can be changed, does it mean that all site's notification sender will be the same? Can it be set to use always the actual site's admin email address as the sender?

rohmann commented 10 years ago

If you comment out those two lines, it doesn't matter what GLOBAL_SMTP_FROM is because it's not being used anymore. If those lines are commented out, your site will use whatever WordPress sets up as default. Try using the wp_mail_from hook as described here: http://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail_from