I’ve tried plugins like “WP Mail SMTP” “WP SMTP” “Easy WP SMTP” “WP SMTP Config” noone is compatible with WPMU
2 comments
Comments are closed.
I’ve tried plugins like “WP Mail SMTP” “WP SMTP” “Easy WP SMTP” “WP SMTP Config” noone is compatible with WPMU
Comments are closed.
If I understand the question correctly, you’re having trouble with SMTP settings in a Multisite environment; specifically, your SMTP settings are not propagating throughout your sites from the root site.
It’s possible that you need to configure the SMTP settings for every site individually, even if you’ve network activated the plugin. Some plugins aren’t written with WPMU / Multisite in mind.
You might be able to programmatically set your SMTP settings, though.
Note: The following code is untested and may or may not work for you. I also can’t speak as to its performance, though I don’t think there should be any significant issues.
Then, in your code sample above, you would use something like this:
References
Codex pages for:
is_multisite()
get_site_option()
|get_option()
update_site_option()
|update_option()
WP Mail SMTP is compatible with multisite
This is quite well hidden – you need to check the source code of the plugin and add some constants to your
wp-config.php
. If you configure WP Mail SMTP through the admin panel of each site, it will only work for those sites where it’s configured and will not work for network adminHow to set up SMTP e-mail for wordpress multisite (WPMU)
Check the code