Coder Social home page Coder Social logo

global-smtp's People

Contributors

rohmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

global-smtp's Issues

Script working on WP 3.9.2 MU using gmail with custom domain

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:

below per https://github.com/rohmann/wp-multisite-smtp

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.

GLOBAL_SMTP_DEBUG formatting

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

GLOBAL_SMTP_FROM_NAME

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?

Submit to wordpress.org

I'd like to get this on the wordpress.org repo at some point. Before then, here are some proposed changes:

  • Rename to: wp-global-smtp (because it works on standard sites as well)
  • Make a standard plugin by default instead of an mu plugin. (although it will still work if installed that way)
  • Add an admin interface that gives you a box to copy/paste a sample configuration if no constants are detected.

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.

Still overwrites GLOBAL_SMTP_FROM and GLOBAL_SMTP_FROM_NAME

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!

localization

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.

1.0 version sending issues

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:

  1. The login page's "new password" tool is not sending the email.
  2. The Check Email plugin is sending the email.

GLOBAL_SMTP_FROM and GLOBAL_SMTP_FROM_NAME are defined:

  1. The login page's "new password" tool is sending the email.
  2. The Check Email plugin is sending the email.

No option to turn off SMTP AUTH (SMTPAuth = false)

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);

Domain Mapping Issue

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?

Network activated 2.3.0 version is not working for me

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.

composer support

Once approved for the wordpress.org repo and version 1.0 is tagged, I'd like to add a composer.json file here.

Authentication-less mails

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.

Uses different email as sender

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!

Can't install properly

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

Overwrites Gravity Forms settings

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!

Mail still not going through

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.