rohmann / global-smtp Goto Github PK
View Code? Open in Web Editor NEWWordPress Global SMTP
WordPress Global SMTP
Just confirming the script works with WP 3.9.2 MU and gmail with custom domain. Thx Alexander!
Here is my wp-config.php, note the single difference from script default is the port:
define('GLOBAL_SMTP_HOST','smtp.gmail.com');
define('GLOBAL_SMTP_USER','[email protected]');
define('GLOBAL_SMTP_PASSWORD','pa55w0rd');
define('GLOBAL_SMTP_FROM','[email protected]');
define('GLOBAL_SMTP_FROM_NAME','Winston Ford');
define('GLOBAL_SMTP_PORT',465);
define('GLOBAL_SMTP_SECURE;','tls');
define('GLOBAL_SMTP_DEBUG',true);
I tested by adding a user. On first attempt, I got lot of debug info and no email. Viewed source to read the debug message. My username/password failed because I typed the wrong domain. I corrected it and added user again. It's fast. I got an email before the debug info even printed.
When I turn on GLOBAL_SMTP_DEBUG, the output I get is very difficult to read due to no
tags in the output.
I looked in the code and didn't understand where the code is that is outputting this debug to try and enhance the code in this way.
Where is all the meat of the code? Ah, I think I get it now, you are using a built in WordPress phpMailer class - so I guess that class is responsible for the debug output?
Thanks,
Patrick
I have this plugin installed on a WP multi-site setup. I have not defined GLOBAL_SMTP_FROM_NAME in wp-config.php. This is causing the emails to have Network Name in the from name of the email.
I would like to have the blog name from which the email is being sent, not the network name. How can I do that?
I'd like to get this on the wordpress.org repo at some point. Before then, here are some proposed changes:
This likely won't be for a few weeks when I have some more time. Until then, I'm open to feedback from anyone using the plugin presently.
Hi,
I thought I open a new issue for the version 2.0. So my problem is the same, it is still overwrites a contact form's sender details, like reported in this issue: #1
The solution is the same for now, I have commented out the 2 variables. I hope there will be a fix for this issue!
Thank you very much!
The text on the admin page is not fully localized. Being a utility plugin, I don't think we need a languages file or supplied pot file, but it would be best to at least localize all the strings so admins have the option.
Hi,
I just installed the plugin from the WP repository on a single and on a multisite install (network activated). The installs are local installs. This is my experience:
GLOBAL_SMTP_FROM and GLOBAL_SMTP_FROM_NAME are not defined:
GLOBAL_SMTP_FROM and GLOBAL_SMTP_FROM_NAME are defined:
Suggest adding GLOBAL_SMTP_AUTH_TYPE = 'NONE' option:
Line 64: 'GLOBAL_SMTP_AUTH_TYPE' => array('LOGIN','PLAIN','NTLM','NONE') );
Line 132: $phpmailer->SMTPAuth = ('NONE' != GLOBAL_SMTP_AUTH_TYPE);
Hello. How to fix this when Domain Mapping is Activated in a WordPress Multisite to let the sub-site use it's identity on Email Header?
Hi,
I just extended your original mu-plugin to have admin menu and for the localization. I have network activated it, but it seems it doesn't send the mail.
Can it be because it is loading too late?
I'll be testing it on my other installs, but I wanted to let you know this issue.
Once approved for the wordpress.org repo and version 1.0 is tagged, I'd like to add a composer.json
file here.
It appears this plugin has a hard requirement for username/password authentication (since SMTPAuth
is explicitly to true
) but this may not work in all situations.
It would be better if this was an option, since there may be mail relays who employ other means of validating access (e.g. IP whitelists) and wouldn't work with SMTP Auth.
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 [email protected]. But it sends out email as [email protected]. 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!
Hi and thanks for the fantastic plugin.
I'm using Wordpress 4.3 Multisite.
I tried putting smtp.php under mu-plugins (that directory didn't exist, so I created it) ==> Seems to have no effect. I don't see the plugins in "Plugins", not in network admin nor in individual sites.
So I put it under plugins/wp-multisite-smtp. I was able to see it in network admin, and I was able to network activate it.
But obviously no effect. When I try the send email tool, it still uses localhost SMTP host, and does not send any email.
Also, I don't see the wp-multisite-smtp in any of the individual sites' dashboards.
What am I doing wrong?
Thanks, Bernd
Hi,
thank you for your work and this free sharing to use your plugin!
I'm testing your plugin on my Multisite install. It is working well.
I'm using Gravity Forms on my sites. There is an option in Gravity Forms to create notifications with the options to set sender email, sender name. Your plugin's settings will overwrite Gravity Forms settings, so even if I set a different email there, your plugin's settings will be used to send out the notification, which is not good.
I was using the wp-mail-smtp plugin before your plugin. It was working with Gravity Forms well, so the default settings were the wp-mail-smtp's settings, but Gravity Forms settings overwrote them. It was the right way to do it.
So my question is if you can fix this in your plugin to let other plugins to overwrite the default settings of your plugin. In a Multisite install this feature is essential.
Thank you!
My mail is still not sending, it could possibly be a compatibility issue with the latest wordpress. I installed it through mu-plugins and put the following in wp-config.php:
define('GLOBAL_SMTP_DEBUG',true);
define('GLOBAL_SMTP_HOST','mx1.mcweb.us');
define('GLOBAL_SMTP_USER','_');
define('GLOBAL_SMTP_PASSWORD','__');
define('GLOBAL_SMTP_FROM','__');
define('GLOBAL_SMTP_PORT',2525);
define('GLOBAL_SMTP_SECURE;','none');
define('GLOBAL_SMTP_RETURN_PATH','_******************');
define('GLOBAL_SMTP_AUTH_TYPE','PLAIN');
I have verified the SMTP settings (Yes, the port should be 2525) but I still cannot send mail. Please fix or tell me if I did anything wrong. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.