Work in progress

This site is currently undergoing an update. If you spot any problems on this page, please let me know.

WP Mail SMTP v0.8

As promised, I’m releasing version 0.8 of the WP Mail SMTP plugin just a few days after WordPress 2.7 was released.

There are some big changes in this version. Firstly, I added option whitelisting to be forward compatible with WordPress. This also makes the plugin compatible with WordPressMU. However, this means version 0.8 is is only compatible with 2.7 or newer. This version will not work on WordPress 2.6.5 or earlier.

I’m going to hold off pushing this update to wordpress.org for a couple of days. I’m hoping to get some feedback from early testers. If there are no disasters, I’ll release 0.8 onto wordpress.org early next week.

Support Questions

If you have a question, please search the questions for 0.7 and the original questions before asking it here.

Please note: If you post email addresses in the body of the comments you will almost certainly receive spam. Please replace all @ symbols with something else when you post the debugging output (not in the email box, just in the comment box).

Posted on: December 12, 2008
Previous post: There’s still time…
Next post: I’m applying, are you?

Categories

Comments

Callum at 2009-02-12 12:42:04

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-33571" rel="nofollow">Branden Russell</a>: If you want to post pictures to your blog you might be interested in <a href="http://posterous.com/" title="Email to blog, no signup, no hassle (apparently)" rel="nofollow">posterous</a>.

Branden Russell at 2009-02-12 12:48:53

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-33573" rel="nofollow">callum</a>: Thanks! I'll take a look at it when that site is up again.

Aleksandar at 2009-04-18 16:46:13

i explained so detailed that there's no way you didn't understand, but your site deleted half of my post.ok i will try again im using xampp and mercury mail, through gmail smtp server, my mercury works fine for few other my sites and few my scripts. when it's wordpress doesn't work at all, until i installed your plug in, then wordpress started sending mails, but in wrong format. Mails can be sent in formats like "Admin ", or just "admin@somesite.com" but wordpress and wp mail smtp keep sending mails in format "&lt;admin@somesite.com" there is no closing tag. there is error i assume this is somewhere in wp script. mercury need to have or both "" or none of "" not just one. this is example what i get when i send emails. "Job MG000104: from Admin &lt;noreply@mojoglas.com (non-local) To: alexandar@hotmail.com (non-local) (Job M000105)-Syntax error...some numbers"

Eitan Caspi at 2010-05-21 10:53:13

I wish to ask something of you: when using the PHP mail() function, there is a security issue because the header of the email is showing the actual user name of the site manager account at the hosting company, not the details you typed at the plugin page. Please see the following article and see if it can help you enhance the plugin so the header "from" data will be the same as the site owner used in the plugin page. Thanks. http://support.hostgator.com/articles/getting-started/general-help/php-email-from-header

Callum at 2010-05-06 11:34:17

I'm struggling to understand your issue. Which version of WordPress are you using? I'm running 2.9.2, I have a custom from name, and it appears only on the correct emails. If you disable the plugin, do your emails have "WordPress" as the from name and the email in options-general.php as the from email address? For example "From: WordPress<your-admin-email@domain.com>". Is that correct? Do you have any other plugins installed that could be affecting it? This functionality works for me, and I haven't had any other bug reports for this feature. I'm not sure how to further investigate your problem.

Callum at 2010-06-11 23:12:30

I think the relevant error is "Password not accepted from server". It seems like the username or password is not being accepted by Google's mail server. Can you double check that info or try with a different account or mail server?

Steve Kent at 2010-02-26 19:06:39

Is there a way to add multiple email addresses at the same time. I tried the standard email1; email2; email3 format but received an SMTP format error.

Callum at 2009-05-06 17:20:34

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-35659" rel="nofollow">Naman Bagga</a>: The error is "ERROR: Failed to connect to server: Connection refused (111)". Try contacting your host, the plugin is working as expected, the issue most likely lies with your PHP configuration or the settings you've entered.

Callum at 2009-01-10 13:01:42

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-32837" rel="nofollow">Dean Suhr</a>: Thanks for the tip. My guess is that WordPress borks the encrypted PayPal code somehow. I've replaced it with a regular, unencrypted button. :)

Anderson Dias at 2009-03-31 04:06:51

The version 2.6.5 is the last before 2.7.

Anderson Dias at 2009-03-31 04:31:49

This error always happens when you put all the data some more since I have 5 wordpress and all work, one that occurred only in that. When I put all the data and click "Update Options", a screen appears with the message that tells you.

Ron at 2009-02-08 07:46:48

I've tried this module for one reason. PHP memory errors when sending back my WP backups by mail. But unfortunately the problem persists. I am able but unwilling to raise the memory limit in php.ini as the server is also running a VOIP PABX. The limit now is 30MB. Is there a solution to use this module for large (&gt;40MB) files? Ronald

Ian Greulich at 2009-02-03 18:01:52

I have a XAMPP setup on XP SP3.. the specs are.. XAMPP 1.7.0 - Apache v2.2.11 (OpenSSL 0.9.8 claims to be running) - MySQL v5.1.30 - PHP v5.2.8 - Wordpress v2.7 - WP Mail SMTP v0.8 (Downloaded this morning 2/3/09) (among other plug-ins) I set up the plug-in for gmail as per the instructions on the mail page, but when I send a test email, It errors out. ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (107860624) There is more to the error than that, but it's a long debug dump, if you want it, I can post it, but other wise that's the gist of it. I am not sure if the error is on the plug-in side or php side, but I need to start somewhere, so I am here. Ian

Steve Lambert at 2009-01-21 08:16:05

Hi, Installed this trying to get WordPress working on a GoDaddy Windows host. Love the debugging output. I tried various combinations of settings and sent the test message and registered two test accounts for each. Received no emails so uninstalled the plugin and set the task aside. Five hours later I got five emails indicating that one of my combinations worked (test email plus 2x user and admin). So reactivated the plugin and am re-trying the settings and keeping better notes. I have a couple suggestions. You have to click Update Options before you can send a test email using the new settings. Clicking Update Options closes the dialog, so you have to scroll down to Settings/Email and open it again to send the email. Be nice to just leave the dialog open...or reopen after refresh. It would also be nice if you offered an optional message box for the test message. When troubleshooting something like this that would be a good place to put the notes for each test. Currently I change the From Name and use that as a xref to the written notes I keep. Anyway, unless the one set of emails that got through was just a fluke, this will solve my problem and I really appreciate the effort you went to.

Callum at 2009-02-08 14:40:53

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33513" rel="nofollow"> Josh</a>: PHP cannot connect to the server. Try using "localhost" instead and see if that works. If it does not, contact your web host. The plugin appears to be working normally. The key error is at the bottom "Failed to connect to server".

Callum at 2009-02-08 14:36:29

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33511" rel="nofollow"> Ron</a>: I'd recommend finding an alternative way of getting the backups off the server on an automatic basis. Sending files of 40Mb by email is not recommended. To answer your question, no, I do not see any way of achieving what you want without raising the php memory limit.

Callum at 2009-03-26 00:54:10

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34482" rel="nofollow">Fred</a>: I'm not sure I fully understand the behaviour you're describing. If you can email me some example code and details of what happens maybe I can do something in the plugin.

Callum at 2009-03-26 00:54:56

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34680" rel="nofollow">PK</a>: Try sending a test mail, what result / error message do you get?

Ron at 2009-02-08 17:33:02

Thanx for the reply. Wasn't the answer I was hoping for ;-) For now I do a cron-job * */1 * * * with a find -atime 2 in the backupfolder for the right tar.gz And email the findings through a small Net::SMTP functioncall in perl. (Also used to send voicemail wavs from my VOIP PABX) Works nice. Even with very large files. My mailserver has no limits by the way. If you need the perl script, no problem. Thanx

shane at 2009-02-24 19:50:35

Hi, I am running XAMPP on my own server, i have setup wordpress and just installed WP Mail. (all of these latest versions as of 24/02/09). I find that i can send the test email fine, but no email is recieved when a user registers. The SMTP server I am using is my ISP (which doesnt require auth from my IP) Any help would be much appreciated! Thanks.

Callum at 2009-02-24 20:25:11

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33924" rel="nofollow">shane</a>: Are you trying to register and send the test email to the same address? If not, try that. Otherwise, it's likely this plugin is working but something else is going wrong.

Josh at 2009-02-09 20:56:08

I don't see any host setting... Are you referring to something outside of your plugin?

Callum at 2009-08-25 16:25:47

At first glance, I'd guess PHP can't resolve your hostname into an IP address. Quick test, try changing the hostname into an IP. So if you're using localhost for SMTP try 127.0.0.1 instead. If you're using another hostname, try <a href="http://network-tools.com/" rel="nofollow">looking up the ip</a> and enter that instead.

Lisa at 2009-01-20 06:09:38

This seems to be exactly what I am looking for! Thank you for making this. When I try to change the settings I get the following error "Your attempt to edit your settings has failed" Yet all my other plugins can be changed. How can this be fixed?

Callum at 2009-07-14 08:22:35

I'm not sure why you're receiving two copies of emails. Perhaps you have email forwarding settings or something. The plugin has no effect on the number of emails being sent so the issue may lie elsewhere.

Bret at 2009-01-12 16:02:33

This is awesome. Supports all I need and works perfectly. Thank you!

Callum at 2009-06-12 10:43:39

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-36415" rel="nofollow">HL</a>: Are you using PHP's mail() function or SMTP? If you use PHP's mail() then on some servers it is not possible to set the from address. I'd suggest trying SMTP if you're not already. Try hostname localhost and port 25, no authentication, that may work for you.

Callum at 2010-01-24 14:53:50

The Google settings that have worked for other people are listed on <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" rel="nofollow">the plugin page</a>. Beyond that, I'd say talk to your host because there's probably a setting on the server that is causing the problem.

Helmut Hirner at 2010-09-17 04:04:12

Wollte mich nur für das Plugin bedanken; endlich funktioniert es ganz einfach über smtp und man kann sogar gmail problemlos und leicht benutzen. Wirklich gute Arbeit. Thks und Servus aus Wien

Callum at 2010-02-15 00:11:46

I'm not quite sure what all of this means. It sounds like the truncation issue is happening in the contact form plugin you're using. As for the from versus reply-to issue, I don't fully understand what you've modified and the results. With the updated code I sent you, the from and reply-to should be the same. Is that the case in your tests?

jeffto at 2009-02-11 12:16:30

thank you so much for your help, finally I made some changes on tiny contact and voila! it works perfect. Nice work Callum

ww at 2009-09-04 03:18:07

HELP!!! ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." I use WP 2.8.4, is it the reason?

Callum at 2009-02-03 21:43:23

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33340" rel="nofollow">Ian Greulich</a>: The error says that your version of PHP does not support SSL. It's a PHP error. You can probably send messages over a non-SSL connection.

Ian Greulich at 2009-02-03 21:52:37

@Callum: I am trying to use gmail, so I have to use SSL, right? Is it my version, or my configuration? (At this point I am trying to get all the info on the error so I can head over to php.net as ready as possible)

Callum at 2009-02-03 21:56:15

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-33345" rel="nofollow">Ian Greulich</a>: Are you running your own server? If not, contact your host and ask them to install SSL support for PHP. Otherwise, you need to do that yourself. As I understand it, yes, you need SSL to send email via Gmail.

kevin at 2009-02-12 23:32:53

I installed the WordPress forums module, bbpress, on my server (which is hosted). Would it be possible to tweak this plugin for WordPress blog so it works on the bbpress site? They integrate fairly well with the users, but the plugin produces a fatal error when i attempt to add it in the admin page of the bbpress site. thanks

Callum at 2009-04-29 20:53:45

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35568" rel="nofollow">Bob Riley</a>: I believe there is an SMTP server you can use to send mail out from GoDaddy. The settings are somewhere on one of the old support threads. Try searching the page for godaddy, I'm sure it'll turn up. Otherwise, it's the first time I see that error message, I'm not sure what's causing it. It seems odd. I'm at a loss as to what to suggest. The plugin appears to be operating correctly, I'd suggest contacting GoDaddy, see if they can offer a solution.

Chalin at 2009-03-15 19:42:05

Callum- Uploaded your plug-in and still cant get my wordpress email to function properly (and as such my users cant get a password to get in a post). Please help! Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#85 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(44) "Language string failed to load: connect_host" ["From"]=&gt; string(24) "*************" ["FromName"]=&gt; string(14) "Food Itinerary" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(45) "WP Mail SMTP: Test mail to ************" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.2" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(30) "relay-hosting.secureserver.net" ["Port"]=&gt; string(2) "80" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(24) "*************" ["Password"]=&gt; string(6) "******" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#86 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(10060) ["errstr"]=&gt; string(185) "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(18) "****************" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_4602ac5e34759d13ee1084fba5194a53" [2]=&gt; string(35) "b2_4602ac5e34759d13ee1084fba5194a53" } ["language"]=&gt; array(0) { } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

Callum at 2009-02-10 18:25:19

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33546" rel="nofollow">jeffto</a>: If you look through the code of those plugins, search for any calls to the mail() function. If the plugins use mail() instead of wp_mail(), then they bypass WordPress altogether. You can probably just replace the mail() call with wp_mail(), they both have the same syntax, but you'll want to backup / test / etc.

Anderson Dias at 2009-03-30 06:16:08

On my website, the following message appears when you save the configuration. "Unable to edit settings. Plese try again"

Fred at 2009-03-15 06:30:17

I'm trying wp_mail_smtp and it is working...but only for some of the mail. I'm building a plugin which should use SMTP too, but it doesn't. If I add an var_dump($phpmailer) in the wp_mail routine of pluggable.php, just before the do_action_ref_array I see the two messages which should be sent. The one from my plugin uses the localhost (the smtp-fields are all empty). The one from Wordpress uses your routine. Any idea how I can change this? It looks likes your plugin is called after mine... I already tried setting the priority in the add_action for my plugin to 99 (but since it was 50 this didn't help either)... And yes, I'm using wp_mail (also tried @wp_mail) but this should be clear from the var_dump-result...

Thomas at 2009-12-15 17:46:10

Does this look like a plugin problem or a server problem to you? The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: SMTP -&gt; FROM SERVER: 220 mrvnet.kundenserver.de ESMTP Tue, 15 Dec 2009 23:39:29 +0100 SMTP -&gt; ERROR: EHLO not accepted from server: 220 mrvnet.kundenserver.de ESMTP Tue, 15 Dec 2009 23:39:29 +0100 SMTP -&gt; FROM SERVER: 250-mrvnet.kundenserver.de Hello 5280209 at tdickerson.com [74.208.16.29] 250-SIZE 20971520 250-PIPELINING 250 HELP SMTP -&gt; ERROR: AUTH not accepted from server: 250 mrvnet.kundenserver.de Hello 5280209 at tdickerson.com [74.208.16.29] SMTP -&gt; FROM SERVER: 504 LOGIN mechanism not supported SMTP -&gt; ERROR: RSET failed: 504 LOGIN mechanism not supported

Callum at 2012-08-11 10:51:15

The plugin will affect all messages sent via the wp_mail() function, so anything that's logged by the WP Mail Log plugin. However, it will only modify the from name and email if they are the original WordPress and wordpress@domain.tld. So if your form plugin changes the from name and address and uses wp_mail() then the emails should be successfully sent via your SMTP server. Could the intermittent failures be flagged as spam?

Callum at 2012-08-11 10:53:41

If the plugins you're using send their messages with the wp_mail() function, then they will be routed via the SMTP settings you specified. If the test mail function works, then the plugin is operating normally, in which case, the issue lies with the plugin that generates the message.

Holroyd Hammond at 2011-07-10 15:29:28

Yep, works, thanks.

Holroyd Hammond at 2011-07-10 14:47:46

Hi - love the plug-in, but since upgrading to WP 3.2 I get this error message when I try to send a test Fatal error: Cannot access protected property PHPMailer::$language in /home/content/54/6801554/html/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php on line 197 I have changed the file permissions on all the files to 777 and still won't work.

Holroyd Hammond at 2011-07-10 14:55:27

Well, heck. Even though I got the fatal error in the admin, I received all the test mails. Can't figure.

Callum at 2011-07-10 15:15:41

It's just a display bug on output, it doesn't affect the core functionality of the plugin. It's fixed in 0.9.1 which is now live on WP.org.

Vivek at 2009-06-27 16:11:14

I am trying with google-apps and the plugin is giving error. does you plugin support SSL as gmail requires it. I tried everything and failed. Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#69 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(28) "training[at]conceptarchitect.in" ["FromName"]=&gt; string(17) "Concept Architect" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(48) "WP Mail SMTP: Test mail to vivek[at]duttamishra.net" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "587" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(28) "training[at]conceptarchitect.in" ["Password"]=&gt; string(9) "actual_password_removed" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#72 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(110) ["errstr"]=&gt; string(20) "Connection timed out" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(21) "vivek[at]duttamishra.net" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_af9057ea489a1c38c150f5cd72645fbe" [2]=&gt; string(35) "b2_af9057ea489a1c38c150f5cd72645fbe" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)

Conroy at 2009-08-23 21:38:19

I'm not a programmer. I was asking because wordpress locked out my emailing due to the limitations on the amount of email my hosting company allowed me. I was just seeing if you could add an option to have it create a batch job is the total emails in more than X and send it out in intervals of Y. :-) Thank you for your time.

Callum at 2009-02-08 22:05:21

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33521" rel="nofollow">Ron</a>: For a 40Mb file I think that approach will work better than using PHP to mail the file. I'd suggest something like rsync + ssh would work well, but that's beyond the scope of this support thread. Glad it's working. :)

Dean Suhr at 2009-01-09 20:52:35

I have WPMU v2.6 installed and just replaced the SMTP Mailer plugin with WP Mail SMTP. I have an EIMS email server on my Mac OS X 10.5.6 G5 server. Local Postfix mail is turned off and the local mail logs are empty. All I am getting for a result on a test message is: -- Test Message Sent The result was:bool(true) The SMTP debugging output is shown below: (no further data is displayed) —-- I modified the source file lines 42-48 as follows: $wpms_options = array ( 'mail_from' =&gt; 'WordPressAdministrator@MLDfoundation.org', 'mail_from_name' =&gt; 'WordPress Administrator', 'mailer' =&gt; 'smtp', 'smtp_host' =&gt; '75.145.74.65', 'smtp_auth' =&gt; true, 'smtp_user' =&gt; 'deansuhr@deansuhr.us', 'smtp_pass' =&gt; 'mypassword' ); And tried entering/updating data in the on-screen form and received this error: -- Are you sure you want to do this? Please try again. -- The only option is to try again - there is no continue button. I can’t find this text in your plug-in so it looks like I am looking at a WordPress or SQL error/config problem. There is no log entry on my email server to show an attempted connection or error. I can’t find where in the WordPress SQL tables your data is stored to double check that your data is stored properly. Your help is appreciated with these two problems ... test email does not work and the advanced email options are not stored. Two new requests ... add the ability to specify a SMTP submit port (like 587), and add a brief bit of text on the Advanced Email Options page identifying your plug-in as the code driving this page. Thanks, Dean

Dean Suhr at 2009-01-09 21:44:11

Callum - thanks for the quick reply. I had downloaded 0.7 from the WP site. I retrieved version 0.8.2 from your web page and modified wp-config.php. By the way - you look like you are quite in the midst of an exciting time of life - congratulations! Test message results show two things: 1) Language string failed to load -- the Language folder is empty in 0.8.2 - is that correct? 2) SMTP -&gt; ERROR: Password not accepted from server: 535 5.7.8 Authentication failed ... I am working on this presuming the language string is not the driving issue of this error. Dean

Callum at 2009-01-09 21:53:00

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-32833" rel="nofollow">Dean Suhr</a>: The language string is a phpMailer error, just ignore it. It's a little misleading but it has nothing to do with WordPress and there's no easy way to disable it. The authentication error would suggest there's a problem with the username and password. Have you tested that info with a mail client?

Dean Suhr at 2009-01-09 22:40:16

Callahan, The test message is working and so is Subscribe2 once I set my email server to allow unknown Mail From's. There is still a old admin email setting somewhere that I will find and update so I can get back to locking the server down to onoy known Mail From's. Thanks for your help and a great plug-in! Dean

David at 2008-12-21 16:39:48

I resolved the issue. Even though I could send and receive a test message, I would not receive the signup confirmation/activation email. Digging into the localhost mailqueue I noticed a bunch of rejected email. The line that showed the culprit was: Diagnostic-Code: SMTP; 553 5.1.8 Sender address domain does not exist Since our mail server checks sender domains, I knew I was onto something. Checking DNS, the host (A Record) entry was dropped. As soon as I entered the host entry into DNS again, the confirmation/activation email worked. Strangely, I had an alias to the host and that still worked as I could continue to get to the web WPMU instance on the host-possibly just a cache issue though. Anyway, it works now. Thanks again for a nice plugin!

Callum at 2009-03-18 16:05:02

<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34395" rel="nofollow">Fred</a>: I'm not sure what you mean. If plugins are supplying incorrect data to the wp_mail() function then it won't work. I don't think it makes sense to check for errors in this plugin.

Callum at 2009-01-09 20:57:45

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-32831" rel="nofollow">Dean Suhr</a>: Have you downloaded version 0.8.2 from my web site or the version on wordpress.org? You edited the wrong part of the file. Those options should not be modified, they're the system defaults. Unless you're using the latest version, don't edit the source code. If you're using the latest version, you can set the options in wp-config.php as directed in the file.

Byron at 2009-01-20 16:57:01

WP-Mail-SMTP 0.8.2 on WPMU 2.6.5 is working nicely. I tested it across several blogs with several admin domains (including hotmail addresses) and found no issues except when Configure SMTP 2.0 happened to be activated ... and that plugin shouldn't be active on WPMU as it doesn't retain multiple blogs settings anyway. Now where's that <a href="http://www.callum-macdonald.com/code/donate/" rel="nofollow"><strong>Donate button</strong></a>... Cheers!

Anderson Dias at 2009-04-03 05:57:43

Ok've updated it and ran, but as I do not like the 2.7, after setting back to 2.6 right and is working correctly. Thank you for your help. Congratulations!

Branden Russell at 2009-02-12 11:01:03

I'm having problems posting via email. It doesn't include the attached photo, links, and such. Would this plugin affect me posting via email? I'm using Wordpress 2.7 (just upgraded to 2.7.1 today) and your plugin.

Callum at 2009-04-20 19:35:01

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35286" rel="nofollow">Frigno</a>: I'd suggest you contact your host and give them the error message. I'd guess your host doesn't allow the fopen() function to open urls.

Callum at 2009-04-20 20:14:12

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34736" rel="nofollow">Fred</a>: It took me a while to figure this out. This plugin doesn't have any impact on where mail is sent. It just plugs into the wp_mail() call to change <em>how</em> mail is sent, but not <em>where<em> it's sent. If there's a bug, it most likely lies within WordPress itself.

Callum at 2009-04-27 14:55:52

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35512" rel="nofollow">German</a>: PHP cannot connect to the server. Try contacting your hosting provider and see if they can help. The plugin appears to be working normally, the error is caused either by the server name being wrong, or PHP not being able to connect.

Callum at 2010-08-05 12:26:01

How are you testing the mail sending from subdomains?

Sharky at 2010-08-05 12:27:43

I'll have to send you a link by e-mail as the site is not launched yet.

Callum at 2010-08-05 12:49:51

I got your message. I suggest you try the following. Write a post on a subdomain site. Enable notification of comments in WordPress core. Then post a comment (not logged in, or as another user) on that post. This will test sending emails from within WordPress itself, rather than by your theme. Hopefully you'll discover whether the problem lies in WordPress itself or in a theme / plugin.

Callum at 2010-08-05 13:24:11

Ok, I just created another plugin that will create an Email Test admin page that just allows you to send an email test. Get the file <a href="http://plugins.trac.wordpress.org/export/272105/wp-mail-smtp/trunk/wp_mail_smtp_test.txt" rel="nofollow">here</a>, rename it to .php and then activate it. Then try sending a test mail from sub domain sites. You'll then have access to the debugging info.

Jen at 2009-09-02 09:57:07

We upgraded one of our Wordpress sites to 2.8 and installed the STMP plug in. I've tried both a domain account (@ourdomain.com) and a gmail account. Both account settings I've tried work when I test with a mail client (ie Outlook) but I'm getting the following every time. &gt;&gt; The SMTP debugging output is shown below: &gt;&gt; SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111) Preceeded by... &gt;&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(111) ["errstr"]=&gt; string(18) "Connection refused" } ["helo_rply"]=&gt; NULL and... &gt;&gt; ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." Any suggestions? I've been working on this for two days now :(

Callum at 2009-07-20 21:59:52

The error message says "Failed to connect to server". Search back through all the previous comments, this has been discussed many times before. I'd guess you need to contact your host and ask them about the various PHP settings required.

Ed Pasternak at 2009-05-19 16:41:37

I have downloaded 0.8.2 and activated it. However, when I go to the E-Mail setting I receive the error Parse error: syntax error, unexpected '}' in /home/edtecn/public_html/WordPress/wp-includes/class-smtp.php on line 1055 I am using WordPress 2.7.1

Kc at 2009-06-05 08:12:42

Hi Callum, I really do appreciate your help. Like I said - your plugin fixed the problem I had with comments never getting to me - so thank you for that alone. Here is the error: "Failed to send your message. Please try later or contact administrator by other way." And it has the nice red border. I am on a Windows server and prior to even trying your plugin I contacted Netkeepers - my web host - and was told to add an SMTP plugin and they gave me all the setting. It appears to work because as I said - I now get the comment emails! Here is a link to the page: http://kcskidz.com/sam/?page_id=3 if you want to fill it out and take a look yourself. Thanks again for the help, Kc

Callum at 2009-06-05 08:35:58

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-36329" rel="nofollow">Kc</a>: I've had a look at the Contact Form 7 code, and it does use the wp_mail() function. So I'm not sure where your problem is arising. I'd suggest you try asking the author of the Contact Form 7 plugin. The error message you're seeing will be displayed if the Akismet check fails. You could try disabling Akismet. If that doesn't work, I'm not sure what else to suggest. Best of luck with it.

Kc at 2009-06-05 08:57:14

Hi Callum, I tried disabling Akismet and then didn't help. Took your suggestion and posted on the Contact Form forum. I'll let you know if I get anywhere! thanks again, Kc

RJ Sherman at 2009-07-22 13:07:51

I have been working with the plugin for a while without a problem. Last week i migrated the setup from a VPS to shared. With that migration i also upgraded from 2.7 to 2.8.2. Neither SMTP or php mail() seem to be working when i send a test email. I am getting The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) when i try to send a test email. I am using google as my SMTP server. I have not touched ["Timeout"]=&gt; int(10) Any thoughts?

Ben Klinger at 2009-02-18 02:53:03

Hebrew Translation: http://dl.getdropbox.com/u/162870/wp_mail_smtp-he_IL.mo http://dl.getdropbox.com/u/162870/wp_mail_smtp-he_IL.po

Frigno at 2009-04-19 15:10:42

Hi, I just downloaded your plugin and I test it, but I got this error: "The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Permission denied (13)" The email is a Gmail account. My WP version is 2.7.1. I really need to use Cimy User Extra Field and/or Mailpress plugins, but I can't understand why no email are sent. Can you help me about the debugging output, please?.... any suggestion? Thx!!! Frigno

Fred at 2009-03-20 03:56:19

Callum, the data which is being send is accepted by the mail() command (might depend on the local server sendmail installation). Just rejected by gmail without giving me a (real) clue why. imho it is quite common to write email-addresses as: - SomeName &lt;somename@example.com&gt; Now I'm just using the 'naked' addresses as my to-address: - somename@example.com Compare it with the option of giving a name and an email address for the sender of the mail instead of just the email address.

Bob Riley at 2009-04-29 18:10:38

Hi, I am unable to get wp-mail-v08.2 to successfully send a test mail to myself. I use gmail, and when I set up wp-mail, I used the following settings: server: smtp.gmail.com Port: 587 Authentication: TLS All of the above works in Thunderbird, my primary email client. In the debug log file text below, to protect "the innocent" from email spam, I have replaced @ with X. Here is the text of the logfile: ******** Log file starts (inserted by me in this message ****** Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#26 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(44) "Language string failed to load: connect_host" ["From"]=&gt; string(26) "nomorefiredeathsXgmail.com" ["FromName"]=&gt; string(10) "Site Admin" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(44) "WP Mail SMTP: Test mail to bbrileyXgmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.2" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "587" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "tls" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(26) "nomorefiredeathsXgmail.com" ["Password"]=&gt; string(8) "Marr67ed" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#27 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(10060) ["errstr"]=&gt; string(185) "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(17) "bbrileyXgmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_87d6833722dcd4dc8a9848f522dd8d27" [2]=&gt; string(35) "b2_87d6833722dcd4dc8a9848f522dd8d27" } ["language"]=&gt; array(0) { } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) ******** Log file ends (inserted by me in this message ****** Thanks for any efforts you make to help. Please note, I use a hosted site set up by Godaddy.com and I uploaded and activated this updated plugin version to replace the older version installed with WordPress by Godaddy.com staff - it didn't work with gmail either, of course. Bob Riley in Albuquerque, New Mexico, USA

Callum at 2009-03-17 22:53:19

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34278" rel="nofollow">Fred</a>: At a guess, I'd say maybe you're calling wp_mail() before the plugins are instantiated, but that seems unlikely. My plugin hooks into calls within wp_mail() so as long as your plugin calls wp_mail() the plugin settings should apply. I'm not sure what else to suggest.

Callum at 2009-03-17 22:55:35

<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34303" rel="nofollow">Chalin</a>: Are you hosted on GoDaddy? If you look back through earlier questions (check the earlier versions also) you'll find lots of questions about GoDaddy including setup that have worked for other people.

Fred at 2009-03-18 01:34:43

@Callum, I tried another plug in with the same results, but this one gave me more debug-info. I've now learned that the smtp-modules work if a let the to-address have the 'bare' format, so not SomeName but just somename@example.com Since I've changed this, the (other) plug in is sending the mail as it should. So there is some formm of sanity check (at least at google) on the to-address which is interfering with the formatting I can use for the mail() command from php. Maybe you could include this check in your software (and rebuild the to-address to the RFC-compliant format)? Good luck and thanks for your reply and the great effort of supplying the world with your plug in and support!

Fred at 2009-03-18 01:36:14

In my previous comment the &lt; and &gt; (brackets) aren't visible or removed. So the email-address I'm normaly using is SomeName (somename@example.com) where the ( and ) are the 'html-tag' variants...

Eric at 2009-03-01 21:59:27

Thank you Callum, I'll have a try.

Mara at 2009-02-19 10:09:22

Hi! I'm also getting the "failed to connect to host" error, wondering if that's not so much the server I'm using which is very picky. What I'm more concerned about is a plain-text password stored on the screen. To at least make myself feel kind of better, I changed input name="smtp_pass" type="text" id="smtp_pass" value="" size="40" class="code" /&gt; to &lt;input name="smtp_pass" type="password" id="smtp_pass" value="" size="40" class="code" /&gt; Maybe a future update could also include a string that hashes that password, since my guess is that the password is still submitted as cleartext to the server? Thanks for making this!

Callum at 2009-02-19 10:35:58

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33841" rel="nofollow">Mara</a>: When we load the options page, the password needs to be in the page so that it is submitted as part of the form. Therefore, if you look at the html code of the page, the password will be there. Hiding it in a password field might make it appear like it's secure, but it's really not. I think it's better to clearly show that the password is stored in plain text. Thanks for the suggestion though. :)

Mara at 2009-02-19 11:09:49

Oh, I understand that the password needs to be there, but does it need to be submitted in cleartext, or is it actually submitted in cleartext? I meant something that hashes it. I know that what I did wasn't actually doing anything special, it just made me feel better in case someone walked up and looked at what I was doing (given my workplace, I wouldn't put it past anyone). The greater concern for me is someone with a packet sniffer looking at what I'm doing. My apologies if I wasn't clear? Or if you knew what I meant but I'm just that obtuse? Thanks anyhow. :D

Callum at 2009-02-19 11:20:04

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-33843" rel="nofollow">Mara</a>: Ok, I see what you mean. The password needs to be provided to the phpMailer class in plaintext. It may well be sent to the SMTP server in hashed form thought. Password fields in forms are still submitted in plain text, so a packet sniffer on that side would still reveal the password. Even if the password is hashed before being sent to the SMTP server, I believe it's still trivial to retrieve the password if you can capture the relevant packets. BUT, my knowledge of the SMTP protocol is limited, so I may be completely wrong.

Callum at 2009-04-18 19:56:15

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35274" rel="nofollow">Aleksandar</a>: This plugin doesn't have any impact on who the messages are addressed to. It only affects the mail delivery settings and the from name / email. The problem you're experiencing most likely lies elsewhere.

Jenn at 2009-03-02 11:26:48

I just wanted to say thanks so much for creating this plugin. I've been struggling to get my email working on my WP site all morning. Finally came across your plugin and it took me all of two minutes to configure and fix the problem!

Aleksandar at 2009-04-18 19:16:05

you haven't heard because most of people using some hosting services, but i dont have hosting, i host my sites on my computer. difference is they don't see what happening with their mail servers,but i see. i didn't pull this from log this was live data.there wasn't need to run port monitor but i run it anyway but nothing to see, because everything happens in my local computer

Callum at 2009-04-18 17:39:35

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35271" rel="nofollow">Aleksandar</a>: I see. So your mail server is logging emails with an opening angle bracket but no closing angle bracket. I haven't heard any other reports of this problem. Can you try running a port monitor to see what WordPress sends to your mail server? Rather than going to the log file if you can watch the transaction as it happens that will help to pin down the problem.

HL at 2009-06-11 20:23:40

I have WP 2.7, and it seems that no matter what I put into the FROM address - it is replaced with admin@localhost - any ideas on how I can stop this? Regards Haydn

Callum at 2009-07-20 21:57:36

The plugin activates features which are already included with WordPress. If the PHPMailer class included with WordPress supports your requirements, you could code it up easily. No, I have no plans to add extra authentication to the plugin at this time. If you'd like to take over maintenance of the plugin code and add these features, I'm happy to discuss.

Fred at 2009-03-28 05:47:17

@Callum Here is some example-code. I'm sending my mail through gmail... &lt;?php $subject = 'demo code'; $body = 'Body of the message'; $header = "From: My name &lt;my_name@example.com&gt;\r\n"; // example 1: mail is not send: $to = 'Somebody &lt;somebody@example.com&gt;'; wp_mail($to, $subject, $body, $header); // example 2: mail is send: $to = 'somebody@example.com'; wp_mail($to, $subject, $body, $header); ?&gt;

Branden Russell at 2009-02-12 12:31:51

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33570" rel="nofollow">Callum</a>: that's what it had seemed, but I could have sworn I tested sending an email photo to word press when I first installed it and it worked. I'm not incredibly familiary with PHP, and so tried looking through the code a bit for both your plugin and the wp-mail.php. It didn't look like it should interefere and I even tried deactivating your plugin (which I REALLY love by the way) and it still didn't work. FINALLY, my searches found that it's a wordpress issue that has been bumped from being fixed in 2.5 to 2.9... *sigh* I really thought wordpress handled photo emails...Thanks for the reply and sorry for the annoyance.

Callum at 2009-02-12 12:26:01

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33565" rel="nofollow">Branden Russell</a>: No, this plugin only relates to WordPress sending mail outwards, not receiving mail.

Kim Flournoy at 2009-06-24 15:08:11

Hi there! Thanks for the great plugin, it totally fixed my issue. Does this plugin work with WordPress 2.8? The plugins page on wordpress.org says it's only compatible up to 2.7. If not, do you have an ETA for when it will be updated? Thanks!

Ahmad Bagadood at 2009-06-10 04:00:47

Is there a way to eliminate overriding the actual contact form sender by your plugins FROM option? Thnx 4 a useful plugin &amp; ur support :)

Callum at 2009-02-13 13:15:17

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33593" rel="nofollow">kevin</a>: I don't think this plugin is compatible with bbPress, but you might be able to port it quite easily. The plugin is released under the GPL so please feel free to port it and republish a bbPress version.

Eric at 2009-02-28 15:57:59

How can I use it on bbpres? Or would you please make a bbpress verison? Thanks!!!

Callum at 2009-03-01 14:23:22

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33963" rel="nofollow">Eric</a>: There is not currently a bbPress version of this plugin. If you'd like to add some code to make it bbPress compatible, or release your own bbPress version, please do. :)

Callum at 2009-09-18 10:09:31

I think it's unlikely the files are corrupt, but it's easy to test. Simply upload / unpack a new copy of WordPress over the top of the existing files. No need to re-install, but all files will be restored. You can do the same for the plugin. If that doesn't fix the issue, I suggest your problem lies outside of WordPress.

demonboy at 2009-10-18 10:49:32

Callum, this is a nice bit of coding, thank you for your efforts. I am using Subscribe2, and have just had it confirmed that I do not need to add the wp- prefix to the mail() function. I rant a test email on your plugin via gmail and this worked, but it came through without the gmail signature I've set up. Is that because your plug-in is only using the smtp server to deliver an email from Wordpress, therefore ignoring all template formatting, including signatures? I don't have a problem with this, in fact it is preferable, but I just need to know so I can format my Subscribe2 covering email correctly. Thanks for your time.

Callum at 2010-03-17 11:32:27

The output shows your mailer of choice is PHP's mail() function. Are your settings correct? Try saving them again just to be sure.

Callum at 2010-08-19 23:28:37

Thanks for the feedback, and thank you kindly for the *very* generous donation. I think it outweighs the total of all other donations ever! I can't figure out what causes that error. It's triggered because one function is declared twice. The only reason I can see for that is that the plugin file is included twice, which would be a bug in WordPress. I'll take some time to look into it more closely over the next few days. I believe the plugin works fine after activation, the error can be safely ignored.

Kellie McCann at 2010-04-30 21:42:57

Thanks for being so very rude! NOT APPRECIATED! Apparently I am wasting my time with you!

Sarsura at 2009-01-30 05:50:49

great plugin, thank you very much for it!

Callum at 2009-04-18 15:51:20

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35250" rel="nofollow">Aleksandar</a>: I don't understand your question. Can you try explaining your issue in more detail, then maybe I can offer some advice.

Anuraag at 2009-09-20 12:37:59

Callum - Hi! Is the WP-Mail-SMTP plug in tested for the latest WO 2.8.4? I have read all your posts - and I have tried all the settings mentioned. I am enclosing the report below ************************ Test Message Sent The result was: bool(false) The full debugging output is shown below: object(phpmailer)(45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(23) "xxx@xxx.com" ["FromName"]=&gt; string(14) "xxx" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(57) "WP Mail SMTP: Test mail to xxx.xxx@xxx.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(23) "xxx@xxx.com" ["Password"]=&gt; string(10) "xxx" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; &amp;object(smtp)(7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(0) ["errstr"]=&gt; string(39) "The operation completed successfully. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(30) "xxx.xxx@xxx.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_47e7a9495477d805bc4a3e61fffc5d3f" [2]=&gt; string(35) "b2_47e7a9495477d805bc4a3e61fffc5d3f" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: The operation completed successfully. (0)

shane at 2009-02-24 20:32:15

Thanks for the prompt reply! I've done some testing with some strange results. I did initally try sending the the test to the same email address that I registered, i got the test but not the registration. Then i registered using my hotmail address and recieved the email fine. I think it must just be my work's exchange dropping the email, the test it gets fine, but it must block the WP rego email for some reason. Thanks,

Callum at 2009-02-09 22:17:31

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33534" rel="nofollow">Josh</a>: The "SMTP Host" setting, it's on the Settings &gt; Email page.

Dean Suhr at 2009-01-10 01:58:26

Your donate button is giving a "We were unable to decrypt the certificate id" error.

German at 2009-04-27 14:24:16

We appreciate your help I am writing from Chile. My problem is: The result was: bool(false) The full debugging output is shown below: object(phpmailer)(44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(44) "Language string failed to load: connect_host" ["From"]=&gt; string(30) "german.munoz.meneses@gmail.com" ["FromName"]=&gt; string(6) "GERMAN" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(46) "WP Mail SMTP: Test mail to gmunoz@tecmedica.cl" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.2" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(30) "german.munoz.meneses@gmail.com" ["Password"]=&gt; string(8) "titi2002" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; &amp;object(smtp)(7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(0) ["errstr"]=&gt; string(46) "La operaci�n se ha completado correctamente. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(19) "gmunoz@tecmedica.cl" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_57ff316e0fe9e44db23ba6ac4ad57c9e" [2]=&gt; string(35) "b2_57ff316e0fe9e44db23ba6ac4ad57c9e" } ["language"]=&gt; array(0) { } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: La operaci�n se ha completado correctamente. (0)

Callum at 2009-04-25 08:59:21

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35466" rel="nofollow">Jasprit Singh</a>: Try sending mail with the same username / password from your mail client on your computer. That will verify if everything is working properly. The error message says "Failed to connect to server". I'm guessing it is caused by one of two things: 1) The mail server is incorrect. 2) Your PHP settings don't allow PHP to open remote connections. Have you tried sending mail with the server set to "localhost" and authentication turned off?

Aleksandar at 2009-04-17 07:32:50

your plugin works for wordpress now sending messages, but in wrong format and dont work for mail server. messages are sent in format like " messages need to be like or without like admin@somesite.com

Callum at 2009-04-09 10:48:46

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-35062" rel="nofollow">Simon</a>: I'm not sure what the Google / Gmail settings are, I don't support that part. I'd suggest you try it and see. No harm in sending a few test messages and see what works and what doesn't. Feel free to post back here with your results to help other users.

phattymatty at 2009-02-06 11:42:40

Is there a way to specify a "reply-to" address? I'm setting the "From Email" within the settings tab. However, Gmail uses my gmail address that is authenticating via smtp. So my settings for the "From Email" are "myname@mywebsite.com" but when I receive the email it shows that it is from "myname@gmail.com". When I hit reply it goes to this address instead of the "myname@mywebsite.com" address. I figured a "reply-to" field may circumvent this. Does anyone know if there is a way to do this and/or if it will work? Thanks

Callum at 2009-04-02 19:26:13

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-34808" rel="nofollow">Anderson Dias</a>: I'm not sure what you mean. I'd suggest upgrading to WP 2.7 and then if the problem persists, post back here. I think it relates to the changes to options that were introduced in 2.7, I don't think the latest version of the plugin is compatible with WP 2.6 or below.

Josh at 2009-02-08 15:44:14

Thanks for the reply Callum. Would you elaborate on what you said please? I don't know what you mean by using localhost...

Callum at 2009-02-08 15:50:23

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-33518" rel="nofollow">Josh</a>: Change the host setting to "localhost" and disable any username / password options. Try sending mail that way and see if it works.

PK at 2009-03-25 23:49:47

Hi, enablelight.org is hosted on GoDaddy.com I am trying to use wp-mail-smtp, to send out emails, I have installed and configured the plugin, however it is not sending emails from both php mail() or smtp options. Any ideas? Also for php mail(), do I need to install anything to make it work? Thank you for your help! PK

Callum at 2009-02-06 17:18:33

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33454" rel="nofollow">wittyvideo</a>: The key error is "Failed to connect to server". That suggests that your server cannot connect to the gmail server for some reason. I'm not sure what's causing that, my guess is that it's a server issue. Did you re-install PHP? Can you fsocksopen() a connection to the gmail server?

wittyvideo at 2009-02-06 18:02:38

Callum, i am really new to programming so i am not sure what you are asking when you say did i re install PHP. also how would i go about fsocksopen() a connection to the gmail server? Thanks in advance

Callum at 2009-02-06 18:10:09

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-33458" rel="nofollow">wittyvideo</a>: I'd suggest you contact your web host and ask them about the problems. PHP installation issues and so on are beyond the scope of the support I provide for the plugin.

Josh at 2009-02-08 12:06:29

I've installed the plugin and it's not working. I've created the wordpress [at] thethoughtful.com address and used the host and port information I got from my host. My output is below: object(PHPMailer)#25 (44) { ["Priority"]=> int(3) ["CharSet"]=> string(5) "UTF-8" ["ContentType"]=> string(10) "text/plain" ["Encoding"]=> string(4) "8bit" ["ErrorInfo"]=> string(44) "Language string failed to load: connect_host" ["From"]=> string(27) "wordpress [at] thethoughtful.com" ["FromName"]=> string(9) "WordPress" ["Sender"]=> string(0) "" ["Subject"]=> string(46) "WP Mail SMTP: Test mail to imserious [at] gmail.com" ["Body"]=> string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=> string(0) "" ["WordWrap"]=> int(0) ["Mailer"]=> string(4) "smtp" ["Sendmail"]=> string(18) "/usr/sbin/sendmail" ["PluginDir"]=> string(0) "" ["Version"]=> string(5) "2.0.2" ["ConfirmReadingTo"]=> string(0) "" ["Hostname"]=> string(0) "" ["MessageID"]=> string(0) "" ["Host"]=> string(22) "mail.thethoughtful.com" ["Port"]=> string(2) "27" ["Helo"]=> string(0) "" ["SMTPSecure"]=> string(3) "ssl" ["SMTPAuth"]=> bool(true) ["Username"]=> string(27) "wordpress [at] thethoughtful.com" ["Password"]=> string(8) XXXXXXXXX ["Timeout"]=> int(10) ["SMTPDebug"]=> int(2) ["SMTPKeepAlive"]=> bool(false) ["SingleTo"]=> bool(false) ["smtp"]=> object(SMTP)#26 (7) { ["SMTP_PORT"]=> int(25) ["CRLF"]=> string(2) " " ["do_debug"]=> int(2) ["do_verp"]=> bool(false) ["smtp_conn"]=> bool(false) ["error"]=> array(3) { ["error"]=> string(27) "Failed to connect to server" ["errno"]=> int(0) ["errstr"]=> string(0) "" } ["helo_rply"]=> NULL } ["to"]=> array(1) { [0]=> array(2) { [0]=> string(19) "imserious [at] gmail.com" [1]=> string(0) "" } } ["cc"]=> array(0) { } ["bcc"]=> array(0) { } ["ReplyTo"]=> array(0) { } ["attachment"]=> array(0) { } ["CustomHeader"]=> array(0) { } ["message_type"]=> string(5) "plain" ["boundary"]=> array(2) { [1]=> string(35) "b1_4bbb12f7c77d7ae1374401c9bbb393bc" [2]=> string(35) "b2_4bbb12f7c77d7ae1374401c9bbb393bc" } ["language"]=> array(0) { } ["error_count"]=> int(2) ["LE"]=> string(1) " " ["sign_key_file"]=> string(0) "" ["sign_key_pass"]=> string(0) "" } The SMTP debugging output is shown below: SMTP -> ERROR: Failed to connect to server: (0) I'm not a programmer and don't understand what the above is saying... PLEASE help! Thanks in advance. Josh

wittyvideo at 2009-02-06 14:36:50

Callum, I have installed the latest version of the plugin. i am using wordpress 2.7. when i first installed the plugin it worked just fine 1st time. but then i had to wipe everything off my server & reinstall everything. i got everything back on the server & got it working. (to include smtp mail) then a few days later one of my friends was trying to register & he NEVER received an email. so i went in the settings & tried to send a test email. got an error. tried changing the settings around (localhost and the such) to no avail. here is the debug code: thanks in advance! Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#56 (44) { ["Priority"]=> int(3) ["CharSet"]=> string(5) "UTF-8" ["ContentType"]=> string(10) "text/plain" ["Encoding"]=> string(4) "8bit" ["ErrorInfo"]=> string(44) "Language string failed to load: connect_host" ["From"]=> string(20) "wittyvideo [at] gmail.com" ["FromName"]=> string(19) "Admin @ Witty Video" ["Sender"]=> string(0) "" ["Subject"]=> string(48) "WP Mail SMTP: Test mail to drdave69_us [at] yahoo.com" ["Body"]=> string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=> string(0) "" ["WordWrap"]=> int(0) ["Mailer"]=> string(4) "smtp" ["Sendmail"]=> string(18) "/usr/sbin/sendmail" ["PluginDir"]=> string(0) "" ["Version"]=> string(5) "2.0.2" ["ConfirmReadingTo"]=> string(0) "" ["Hostname"]=> string(0) "" ["MessageID"]=> string(0) "" ["Host"]=> string(14) "smtp.gmail.com" ["Port"]=> string(3) "465" ["Helo"]=> string(0) "" ["SMTPSecure"]=> string(3) "ssl" ["SMTPAuth"]=> bool(true) ["Username"]=> string(20) "wittyvideo [at] gmail.com" ["Password"]=> string(10) "########" ["Timeout"]=> int(10) ["SMTPDebug"]=> int(2) ["SMTPKeepAlive"]=> bool(false) ["SingleTo"]=> bool(false) ["smtp"]=> object(SMTP)#57 (7) { ["SMTP_PORT"]=> int(25) ["CRLF"]=> string(2) " " ["do_debug"]=> int(2) ["do_verp"]=> bool(false) ["smtp_conn"]=> NULL ["error"]=> array(3) { ["error"]=> string(27) "Failed to connect to server" ["errno"]=> NULL ["errstr"]=> NULL } ["helo_rply"]=> NULL } ["to"]=> array(1) { [0]=> array(2) { [0]=> string(21) "drdave69_us [at] yahoo.com" [1]=> string(0) "" } } ["cc"]=> array(0) { } ["bcc"]=> array(0) {to you. } ["ReplyTo"]=> array(0) { } ["attachment"]=> array(0) { } ["CustomHeader"]=> array(0) { } ["message_type"]=> string(5) "plain" ["boundary"]=> array(2) { [1]=> string(35) "b1_97124a759a9167f5bd99ffe7af94224f" [2]=> string(35) "b2_97124a759a9167f5bd99ffe7af94224f" } ["language"]=> array(0) { } ["error_count"]=> int(2) ["LE"]=> string(1) " " ["sign_key_file"]=> string(0) "" ["sign_key_pass"]=> string(0) "" } The SMTP debugging output is shown below: SMTP -> ERROR: Failed to connect to server: ()

Bob LLama at 2009-05-27 18:03:32

I just installed your plugin on WP 2.6.1, seems to load fine but when I try and enter the settings, I get this error: Your attempt to edit your settings has failed. I checked permissions and they're 644, just like everything else... I've got WP Status Notifier installed, I don't think that should matter though...

Callum at 2009-05-12 14:12:31

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-35799" rel="nofollow">nfo[at]rswstudio.it</a>: If cform uses the wp_mail() function then the settings in this plugin will affect mail delivered via cforms. However, if cforms uses its own mail class or uses php's mail() directly, then this plugin will have no effect. I'd suggest asking the cform plugin author if they use the wp_mail() function. If they do, these settings apply, if not, they don't.

Callum at 2009-01-21 15:52:15

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/#comment-32995" rel="nofollow">Lisa</a>: What version of the plugin are you running? If you're not using 0.8.2 then update to that version and see if it fixes your problem.

David at 2009-02-05 17:01:49

I am wondering if there is a way to allow STARTTLS with this plugin? Thanks

Callum at 2009-02-05 17:16:08

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33422" rel="nofollow">David</a>: I don't believe the phpMailer class that is included with WordPress supports STARTTLS so it's not possible to use that option with this plugin. The Swift mailer / smtp plugin might support that option.

Conroy at 2009-08-23 18:40:20

Can you add batch emails? Lets say your host only allows 500 email per hour and you have to email all 2000 of your user. Can an option get added to limit the about of emails that go out per???

Steve Lambert at 2009-01-21 10:12:54

This is a follow-up on my last comment. I finally hit the sweet spot and can send test emails and the registration process works. All this is on the Windows host at GoDaddy. FWIW, here are general settings that worked for me: From Email: an account I created on the GoDaddy host email. SMTP Host: relay-hosting.secureserver.net SMTP Port: Left blank Encryption: None selected Authentication: No, Do not use SMTP authentication Changing the host, port, or authentication caused it to stop working. I didn't mess with authentication. Thanks

HL at 2009-06-14 21:26:15

Thanks for your reply. I'm using smtp - but was still having problems. I finally got it to work by adding two lines to the wp_mail_smtp.php script on line 164 which manually sets the Sender and From header tags. they weren't being set otherwise. $phpmailer-&gt;Sender = get_option('mail_from'); $phpmailer-&gt;From = 'myaccount@nowhere.com'

Callum at 2009-06-24 15:56:37

I haven't explicitly tested with 2.8, but I expect the plugin will work. Would you like to test and share your experience here?

Kim Flournoy at 2009-06-24 18:38:23

I think it might be another few weeks before I do the update to 2.8 for that particular site, but when I do I'll report back...

Bratislav at 2009-07-17 07:34:52

i cannot send messeges:(, i tryied everything what shoul i do....freehostia server...php5:(......gmail provider

Aleksandar at 2009-04-18 20:47:52

i just downloaded and tried latest wp and it's problem in wp script somewhere not in your plugin

Aleksandar at 2009-04-18 16:53:09

again this&lt;&lt;&lt;&gt;&gt; symbols are missing from my post and everything between this symbols. but i hope u understand from example in order for mercury to be able to send mails it need to be in format like this: “Job MG000104: from noreply@mojoglas.com (non-local) To: alexandar@hotmail.com (non-local) (Job M000105)-OK”

David at 2008-12-21 15:00:38

Callum, thanks for this updated version. I downloaded the previous version (0.7 from wp) to run on a pilot WPMU install at work (setting up local blogspace for teachers) and could not get it to work. When attempting to "update options", I just kept getting a "WP Failure" page with "are you sure you want to do this" with a "retry" link. I have a real oddity though. I can now configure this plugin, save the settings and send a test message however, when testing the blog registration/signup, no email with the activation link is received. WPMU 2.65 FreeBSD 7 Thanks -D

Mike at 2009-07-10 12:10:56

Are you planning on a release for 2.8? I cannot get it to work with it. Thanks.

JPD at 2009-08-24 17:18:10

I'm getting this error no matter what settings I use. SMTP -&gt; ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) Suggestions?

Jonathan Denwood at 2009-09-20 20:20:05

Callum thanks for the very quick reply! My problem is getting more stranger. I change the email address to my own Google Apps controlled personal domain email address. Everything works great. However when I use the clients email address which I transferred to Google Apps no email? I'm really confused now! I did read that it might be something to do with MX record clicking the check box that to do with localhost Always accept mail locally even if the primary mx I check this.Go any ideas what I'm doing wrong? Take care jonathan

Jonathan Denwood at 2009-09-20 21:16:01

Hi Folks and Callum I managed to solve the problem. It was to do with the hosting company I normally use Siteground for a shared hosting account for clients. Recently they have introduced a semi automatic system of setting up the MX records with Google Apps. This is the problem. Before this they had a FAQ doc with a list of changes. When I removed the script settings and used the old MX records every thing was ok. Take care Jonathan

przemek at 2010-03-05 10:32:45

hey ! i just started playing with Your plugin but i have some problem. Im recievieng this : --------------------------------------------------------- Test Message Sent The result was: bool(true) The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 mail.orange.pl ESMTP SMTP -&gt; FROM SERVER: 250-mail.orange.pl 250-PIPELINING 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN 250-SIZE 250-X-RCPTLIMIT 100 250 8BITMIME SMTP -&gt; FROM SERVER: 250 ok SMTP -&gt; FROM SERVER: 250 ok SMTP -&gt; FROM SERVER: 354 go ahead SMTP -&gt; FROM SERVER: 250 ok 1267802218 qp 25880 SMTP -&gt; FROM SERVER: 221 mail.orange.pl --------------------------------------------------------- but i didnt recive any email message.. can You help me with that ? best, Przemek

Karl Hammar at 2010-03-18 04:40:32

Hello, To begin with, thank you for providing this plugin. It appears to solve a need that myself and other have. Well done! Now, the question: in the source code it is indicated that setting default values in wp-config.php should disable the admin page and use those default values for all blog instances in a WPMU install. The todo-list slightly below this text however indicates that this feature is not yet complete. In my testing I have not gotten it to work either, though I am a beginner at both WP and WPMU, so I may be doing something wrong. In my case, the admin page remains and no emails are sent even though the proper values are input into the wp-config.php file. Is the feature not in place yet, or am I going about things wrong? Best regards, Karl Hammar

Callum at 2010-11-11 01:55:46

The password is only visible to people who have administrator access to the blog. Those people need to be trusted because they have total control over the blog. They can install any code they like and so have access to everything. Unless you're in a very special situation or extremely security conscious (read paranoid) then creating a separate email account will be fine. In my opinion, this issue is more about the perception of security than actual, meaningful safety from attackers.

Callum at 2010-11-11 01:52:39

You upgraded from 3.0 to 3.0.1 and now you're seeing an error? If you downgrade to 3.0 again, does that resolve the problem?

Subhramani. S at 2010-07-04 21:25:11

Yeah, the plugin was working absolutely fine until I upgraded to WP3. So I guess its something to do with wordpress and not your plugin.

Anuraag at 2009-09-21 04:12:36

I think adding to a note to the plug in should help. The wordpress.org site says<b> "This plugin has not been tested with your current version of WordPress."</b>

fretbuzz at 2009-02-25 14:58:12

I am getting errors on my server log for wp-mail-smtp. Here is the error: PHP Warning: Invalid argument supplied for foreach() in **/****/wp_heathmcconnell/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php on line 86 How can I fix?

Callum at 2009-02-25 15:38:08

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33937" rel="nofollow"> fretbuzz</a>: Have you modified the plugin file in some way? The error suggests that the file has been edited. Try installing a new copy of the plugin.

fretbuzz at 2009-02-25 15:41:38

I did reinstall. The subscribe2 guy says I have a phpmail language file problem. He said I should install phpmail, which is beyond me? He said, Okay, basically then the PHPMailer functions that are used by WordPress are trying to report an error to you but can't as there are no language files included. you can either try to figure out the error yourself by adding the language error files (more help <a href="http://subscribe2.wordpress.com/2009/02/07/subscribe2-413/#comment-10385" rel="nofollow">here</a> or contact you host and get them to look in the mail and server logs.

Callum at 2009-02-25 17:51:17

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33939" rel="nofollow">fretbuzz</a>: The language string error is a misnomer, you'll still get a valid error message from PHPMailer. Look through the error output and there should be something useful. Most often I see "Failed to connect to host".

jeffto at 2009-02-10 16:19:52

I have been trying to use some form plugins (easy_contact, formbuilder, and others), but they continue trying to send mail troughout php mail function instead your plugin. ¿any ideas about it?

kevin at 2009-02-14 13:13:09

thanks for the reply. though that's beyond my abilities - not sure what's entailed with 'porting and republishing'. yes, it is not compatible as is - produces a "fatal error" in the plugin section of bbPress.

Callum at 2009-03-30 18:08:31

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-2/#comment-34762" rel="nofollow">Anderson Dias</a>: What version of WordPress are you using?

Jasprit Singh at 2009-04-25 08:43:54

Sir, Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#152 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(44) "Language string failed to load: connect_host" ["From"]=&gt; string(28) "wordpress@sistemcreators.com" ["FromName"]=&gt; string(10) "No Replies" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(55) "WP Mail SMTP: Test mail to sistemcreatorscrew@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.2" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(23) "mail.sistemcreators.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(28) "wordpress@sistemcreators.com" ["Password"]=&gt; string(9) "********" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#145 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(0) ["errstr"]=&gt; string(0) "" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(28) "sistemcreatorscrew@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_70e8088bd64f08e470676a9a3c0f7811" [2]=&gt; string(35) "b2_70e8088bd64f08e470676a9a3c0f7811" } ["language"]=&gt; array(0) { } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: (0) what is the problem i call the my service provider he gave me my setting and now its not connecting to the server sir please solve my problem Please

info@rswstudio.it at 2009-05-12 01:57:46

problem with cform Is possibile that cform use wp_smtp? thank you

Ben at 2009-08-22 09:39:16

Hi there. I've got an issue with receiving comment notification by email from wp-mail-smtp 0.8.2. I'm using Wordpress 2.8.4 and I have an authenticated SMTP server configured. Sending the test email to my own email address works without a problem. This is a fledgeling Wordpress instance, so there is only one user and nobody else may register. I have ticked Administration-&gt;Settings-&gt;Discussion-&gt;Email me whenever anyone posts a comment and whenever a comment is held for moderation. The comment goes into the moderation queue, but I have never received a single notification. I cannot see anything related in the web server's error log. Have you seen this before, or do you have any insight into other tests I might carry out? Many thanks. Ben

Callum at 2009-02-06 17:19:41

@<a href="http://www.callum-macdonald.com/2008/12/13/wp-mail-smtp-v08/comment-page-1/#comment-33451" rel="nofollow">phattymatty</a>: Gmail automatically sets the from and reply-to addresses to avoid you "faking" spam via your gmail account. There's no way round that with gmail. You could use a different mail server and set your own from address.

Callum at 2009-06-10 10:53:59

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-36396" rel="nofollow">Ahmad Bagadood</a>: No, there's no way to override the FROM address. You could copy the plugin and modify it to change the from address if you're familiar with PHP.

Callum at 2010-04-25 22:19:57

If you're using constants, you want to activate site wide. The plugin needs to be activated site by site to use the options page.

Simon at 2009-04-09 01:37:15

I register a gmail account for organization(***@[organization].com), is the setting different to the normal account(***@gmail.com)?

PK at 2009-03-26 16:41:03

Thank you for replying. I contacted GoDaddy.com (Website Hosting Provider) and got the correct SMTP Server Host Name and with that, it is working fine now. Thank you Again!

Bob LLama at 2009-05-27 18:07:25

Whoops, missed the part in the FAQ that said only 2.7+. Downloading 0.8 now instead...

Carter Baker at 2010-03-28 20:33:03

I get this: Test Message Sent The result was: int(2) The SMTP debugging output is shown below: And I can't tell if that is good or bad. Previously I had been getting the bool error thing, and a full debug deal, so I don't know if it actually worked. I tried the "Forgot Password" thing, and it actually said it went through, where previously it had been the mail() error thing. Last note is that I am really impressed with your responses. I'm looking at this giant comment column, and you answered everything requiring an answer! Thanks

Callum at 2009-08-11 16:08:29

Can you send to anyone else on live.com? My guess is that live.com provide an SMTP server which is different from their incoming MX server. That means, they allow you to send mail out from their network (SMTP server) via a different server than they accept incoming mail from other places on the internet (incoming MX server). Therefore, it's possible they have a rule which says, if you're trying to reach your own live.com account, you can't use the SMTP server. It might work to send to other live.com accounts though. Either way, if you can send to other accounts, the problem lies with the server not with the plugin.

Jeffrey at 2009-08-11 16:22:06

I am using my hosting company's SMTP server, and the live.com email is the destination email address I was trying to send to. The interest thing is that if I use GMail SMTP server, then I can send to any email address including the previous problematic live.com address.

Jeffrey at 2009-08-11 17:04:39

I'm sure it is not related to the plugin. Just want to report this to see if anyone else is having the same problem as me. The frustrating thing is my hosting company says it is live.com's problem because the error says no mailbox by that name, but live.com says the mailbox is valid and active and it may be WordPress's problem. Urgh!!!

Callum at 2010-04-30 19:19:22

Ok, you're getting the emails but the HTML is displayed as raw text instead of as HTML. Is that correct? That sounds like an issue with how the Zingiri web shop is sending emails. Do the emails arrive properly if you disable the WP Mail SMTP plugin? PS> Please click the Reply button to this comment to keep the conversation in one place.

Callum at 2010-04-30 19:01:23

Read <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" rel="nofollow">this</a>. This question has been asked and answered many times, please do your own research before wasting my time asking for information that's already available.

David Boyd at 2009-08-27 15:14:02

I've just installed the plugin after realising I needed it. The plug in installs ok, but when I try to activate the plug in I get a 500 Internal Error? Needless to say the test email doesn't work either. Never happens on other plugins. ver 0.8.2/Windows Server 2008/IIS7 Permissions perhaps? what happens on activation?

noyse at 2010-05-02 13:28:34

&gt;If you deactivate this plugin, does the correct sender address appear on your email?&lt; yes it does - but i had change the default adress in wordpress properties to my own. is that the problem?

Deborah at 2009-07-29 04:24:18

I am struggling :( The subject is incorrect in email notifications to subscribers for new posts. I want the title of the post to be sent as the subject of the email, but currently the subject shows "New post is xx category". WHERE DO I CHANGE THIS? I think I have been through literally EVERY file in WP and cannot find where this is supposed to be set. PLEASE HELP!! THanks :)

Callum at 2012-02-13 10:36:29

There's no easy way to bypass the plugin for some messages and not for others. The code is GPL so you're welcome to rewrite it to add additional functionality if you like.

mike at 2011-12-26 14:16:29

Using contact Form 7, what file do I find "mail()" in? I understand I need to change it to "wp_mail()" Thanks in advance.

Mark Rowe at 2012-06-02 16:48:37

Hi I have spoken with my host which is jumpline.com and they said..."No, smtp is not blocked on the server. You can still use it in your domain. A path for smtp is, /usr/sbib/sendmail." I have done 4 tests which are listed below. gmail to gmail - worked gmail to domain email - worked domain email to domain email - worked domain email to gmail - failed Please help. I have attached the 4 test results. I have replaced the email name and passwords to avoid spam. http://beatricekirton.com/WP-SMTP-TESTS/ Regards.

Josh Schneider at 2010-10-16 20:19:03

Sorry, I missed the little "Older Comments" links on these pages. I'll search for other responses. If encryption/decryption isn't an option, though, I'm still wondering if simple password obscuring is. I'll see if I can figure that out. Thanks.

Callum at 2010-10-16 20:25:55

I'm thinking about how to provide a better archive search. As the plugin becomes more popular, it gets harded to find questions already asked. If you mean input type=password, that will only visually obscure the password, it'll be plain text in the source. The password needs to be supplied to the PHPMailer class in plain text, so encryption isn't viable. In my opinion, the most secure option is to put the password in wp-config.php in a constant, along with the db password.

Josh Schneider at 2010-10-16 20:38:48

I figured that's what you meant about encryption not being viable. If my client is okay with providing me with a password, I'll do what you recommend for security purposes. Another option would be to set up a gmail account just for the purposes of secure SMTP Wordpress email routing, and again put the information all in wp-config (stored above the web root). Thanks.

Callum at 2010-10-16 20:55:55

In my opinion, a dedicated mailbox always makes good security sense. If you want to go nuts on security, you could create a file with only the constants defined, owned and only readable by the web server user. An attacker would need root access or malicious code to read it.

slavyk at 2009-08-12 15:35:44

PK - why don't you post here the server that they gave you or on my email,please!

Callum at 2009-06-28 12:53:36

Please search back in the previous comments, this issue has been discussed before.

Callum at 2009-07-29 09:49:47

No, not without researching it first.

Deborah at 2009-07-29 09:32:00

Do you know which file(s) the program uses when compiling email notifications?

Eduardo Sanzio at 2009-07-01 13:11:00

Hello, I'm using Wordpress pt_BR (in portuguese) version 2.8 and when I acivate the plugin it doesn't show the "E-Mail" under "Settings", and I searched everywhere for it... any idea of what's wrong? Thanks for the support

Cyprian Gwóźdź at 2009-07-25 04:15:35

Thanks for this plugin, Finally I was able to solve mail issue in my wordpress. Cheeeers. Good job.

Callum at 2009-09-20 20:06:38

This question has already been asked and answered <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-35799" rel="nofollow">here</a>.

Mike at 2009-07-10 12:18:40

Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#67 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(21) "webcap@kenoshalaw.com" ["FromName"]=&gt; string(48) "Law Firm of Madrigrano, Aiello &amp; Santarelli, LLC" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(53) "WP Mail SMTP: Test mail to mtjacobsen@earthlink.netl" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(21) "mail.swift-impact.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#68 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(10060) ["errstr"]=&gt; string(185) "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(26) "mtjacobsen@earthlink.net" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_b67075d37b761008c505ca4eddc0ca14" [2]=&gt; string(35) "b2_b67075d37b761008c505ca4eddc0ca14" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

Callum at 2009-07-10 12:14:32

According to <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-36665" rel="nofollow">Kim Flournoy's comment</a> the plugin works with 2.8. If you're having a specific issue, maybe I can help with that.

Bob Riley at 2009-05-02 12:54:34

Callum, as you suggested, I spoke to godaddy.com about setting up my free email account associated with my website. It is web-based mail, so it is easy to check mail. I then entered this data into your WP Mail SMTP - and the test mail worked!!! I used the SMTP option of your plug-in and entered the following: From email (using fictitious user instead of user name godaddy gave me): From Email: user@yourwebsite From Name: user Mailer: Send all WordPress mails via SMTP SMTP Host: Smtpout.secureserver.net SMTP Port: 80 Encryption: No encryption Authentication: Yes; use SMTP authentication Username: user@yourwebsite Password: (as given online to the webmail account for my website as set up by godaddy.com) after replacing the temp password given me by godaddy tech to start the email account. I hope this is helpful to someone using your plug-in on a site hosted by godaddy. Do you think I should post this info at the WordPress support forum as well? Unless I hear otherwise from you, I'll do that. Thanks for your help in all this.

Callum at 2009-07-23 07:51:28

It sounds like the PHP settings on your new VPS. I'm not sure what options are required, but probably something to do with fopen() on remote hosts I'd guess. Just a guess though. Can you compare the php.ini file on your old server with your new php.ini file? Or try looking at the output of <code></code> on the old and new servers. If you find any relevant differences, that might be where your issue lies.

Dustin at 2009-12-04 16:19:51

Hi Callum, I am having an issue when I click "update settings". It is redirecting me to http://mltnews.com/wp-admin/options.php and doesn't update the settings.

Arno at 2010-04-28 16:52:48

Hello, First of all, thanks for the plugin. It seems to work fine... happy me ! I have a question regarding the usage of the wp_mail() directive. It seems that mail send out by another plugin is not correctly handled somewhere. All mails arrive in raw state, so with all the line breaks and so on in them. The smtp server does nothing but relay, so i think it's in the way the other plugin calls the function. Do you have any idea how to call the wp_mail() or modify the header so the mail will be transported through as html ?

Callum at 2009-05-19 18:43:12

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-35944" rel="nofollow">Ed Pasternak</a>: That's a core WordPress file, it may be corrupted. Try uploading that file again. If the error continues, try re-uploading all the WordPress files. You can follow the instructions as if you were upgrading to 2.7.1. The problem appears to be outside this plugin from the error message you've posted.

Callum at 2010-05-11 14:01:38

I've published a <a href="http://www.callum-macdonald.com/download/wp-mail-smtp.pot" rel="nofollow">POT file here</a>. If you'd like to send me a translated file, I'll be happy to add it to the plugin. :-)

Karl Hammar at 2010-03-18 18:18:04

Oops - since the config file contained php start and end tags, it was stripped from the comment. Below is the same file without those tags: define('WPMS_ON', true); define('WPMS_MAIL_FROM', 'noreply@magasinetneo.se'); define('WPMS_MAIL_FROM_NAME', 'Magasinet Neo WordPress MU install'); define('WPMS_MAILER', 'smtp'); // Possible values 'smtp', 'mail', or 'sendmail' define('WPMS_SMTP_HOST', 'smtp.webfaction.com'); // The SMTP mail host define('WPMS_SMTP_PORT', 465); // The SMTP server port number define('WPMS_SSL', 'ssl'); // Possible values '', 'ssl', 'tls' - note TLS is not STARTTLS define('WPMS_SMTP_AUTH', true); // True turns on SMTP authentication, false turns it off define('WPMS_SMTP_USER', '***************'); // SMTP authentication username, only used if WPMS_SMTP_AUTH is true define('WPMS_SMTP_PASS', '********'); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true

Callum at 2009-09-17 09:44:22

The files are all located in your plugins folder inside a folder called wp-mail-smtp, typically that would be wp-content/plugins/wp-mail-smtp/. Something had to change for the setup to stop working. If restoring the plugin files doesn't work, try looking for changes in your php.ini settings, firewall (is your mail server remote), any blacklisting (has your web server been blacklisted for sending too many emails maybe?) or the mail server itself.

Callum at 2009-09-17 09:39:55

I suggest looking at your PHP settings. I'm not sure where / what to look for. If you do get it to work, please post back here. I'll try to compile a list of the PHP settings, I'm seeing the same questions repeatedly.

lifo at 2009-09-17 21:58:54

oh, thanks for the quickest responce ever... and advice me in my mail.... ive tiped my mail wrong cause of spam and boots than stole them. the files of the plugin i know were they are, ive deleted them and restoring a cuple of times... the problem continues.... no mails are going out from this blog i was talking about the files of wp's core that the plugin re write or edite. couse, when i erase the files and rewrite the config of the plug in is there... the smtp confing not change... ive complaned in the server and they said that phpmailing is working fine... cause the server not suport ssl transport and i neeed it for gmail i only can use phpmailing... well, thanks for the quick responce sorry for my english

lifo at 2009-09-17 22:04:28

and i dont see de php.ini file, were is it?

Callum at 2009-09-17 22:13:32

As I understand it, you need SSL support enabled to use Gmail as your SMTP server. The php.ini file is a server-wide configuration file. It's likely only the server admin can make changes to this file. You can see all PHP settings summarised with the phpinfo() function.

lifo at 2009-09-17 21:29:33

yes, but the plugin worked fine in php mode... ssl is not going to be able because is a limitation of the free server, but phpmailing is activated... ive seen that php confing, from de admin panel of the server. the thing that i want to do now is to rolback to the php mail config of wp, but i can. i gona backup all the files and db and re install wp... by the way, im using Subscribe2, exec-php, vimeorss, flikrrss and zoombox plugins... this could be the problem?

jogas at 2009-09-03 07:23:15

Hi, your plugin it´s amazing, but give me the following error: ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (65733744) What I´m doing wrong? Thank´s

Venu Vanama at 2009-09-18 19:54:36

Hi Callum, I am a newbie to wordpress and trying my best to get used to it. Yesterday i have installed WP Mail SMTP v0.8 plugin in our blog site and unfortunately i am getting lot many spam emails from new user registration and it will have like cadujufo@yandex.ru etc and its more worse. I have already installed other plugins like Akimset, CAPCHA, Simple trackback validation and no luck. Is there any info we can minimise spam or is this just normal with wordpress. I would really apreciate if you could please suggest on this. Sample header info: X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" X-OriginalArrivalTime: 18 Sep 2009 09:56:45.0628 (UTC) FILETIME=[54DF7FC0:01CA3846]

Ron at 2010-04-19 02:02:45

I have tried every variation that I can find in the help, different ports, even using my personal gmail account rather than the apps account setup and I am still not able to get it to work. Any thoughts? Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#88 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(26) "noreply@slappedwithwit.com" ["FromName"]=&gt; string(16) "Slapped With Wit" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(45) "WP Mail SMTP: Test mail to rcolema3@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(22) "ron@slappedwithwit.com" ["Password"]=&gt; string(7) "my-password" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#86 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(110) ["errstr"]=&gt; string(20) "Connection timed out" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(18) "rcolema3@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_7f7d14a931131d134bbc1941a990c663" [2]=&gt; string(35) "b2_7f7d14a931131d134bbc1941a990c663" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)

Callum at 2010-04-19 13:22:07

Ask your host if they allow outgoing connections on port 25, it might be that they've blocked traffic either through PHP or at another level (firewall maybe). It sounds like the issue lies somewhere with the host's setup.

Callum at 2010-04-19 13:24:52

Check wp-admin/options.php and look for options with the names that start with "mail_" and "smtp_" and then one called "mailer". Do they exist? Now that you've deactivated the plugin, can you activate it again? Are you seeing the error appear in your PHP error logs when you try to activate the plugin? The code on line 83 is only supposed to fire when the plugin is first activated, so that should happen only once when the plugin is turned on in the admin system. After the plugin is running, this code should be redundant.

Naman Bagga at 2009-05-05 02:23:31

I'm trying to use this plugin with the SMTP server for Google Apps on my domain.I get this error- object(PHPMailer)#74 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(44) "Language string failed to load: connect_host" ["From"]=&gt; string(20) "#######@####.com" ["FromName"]=&gt; string(10) "#####" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to ####@####.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.2" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "587" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(20) "####@####.com" ["Password"]=&gt; string(13) "#######" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#73 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(111) ["errstr"]=&gt; string(18) "Connection refused" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "######@####.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_a33654fb09471b2f95b08bc389dd7f16" [2]=&gt; string(35) "b2_a33654fb09471b2f95b08bc389dd7f16" } ["language"]=&gt; array(0) { } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Ammad Zee at 2009-09-04 12:51:12

Hey man, Moved the website from IIS7 to Linux thinking that it would solve the problem. Apparently that did not fix it. Its not sending any mail from the website, not even using the php mail(). I have also reinstalled a fresh copy on wordpress with a new database but no use. This is my only website on GoDaddy and its giving me hell. I followed your instructions to connect to google apps smtp server..basically smtp.gmail.com, all setting which you mentioned. All my other website work. I read somewhere that godaddy has a firewall towards gmail smtp. Don't know if that is true. Wordpress version is 2.8.4 on linux hosting. Any suggestions? thanks AZ

John at 2009-09-15 02:25:44

I'm hosted by Go Daddy's Windows ASP shared hosting. Any way I can get this plugin to work? I"ve tried sending a test mail and it didn't go through. "SMTP Error: Could not connect to SMTP host."

Kc at 2009-06-04 19:15:26

Hi Callum, Your plugin completely fixed my problem with never getting the emails when someone posts a comment, thank you! However, I haven't been able to get it to fix my problem with Contact Form 7. Your plugin seems to be working fine as I do get the comment emails and I can send the test from the setup page but if someone tries to use the Contact form they get the error messge "Failed to send your message. Please try later or contact administrator by other way." with the ugly red box around it. I had this problem before installing your plugin - and I still have it now. My question is - can you recommend a good Contact plugin that will be compatible with yours? Thank you!! Kc

Callum at 2009-06-04 19:31:49

@<a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-36324" rel="nofollow">Kc</a>: I'm not aware of any contact plugins that use the wp_mail() function. There might well be some, I'm just not sure which ones use that function. If you find one, please share your experiences here for other users of the plugin. If you want to look through the code of Contact Form 7, look for any use of the mail() function. You can probably change it straight from mail() to wp_mail(), just adding the wp_ prefix, and then you might find it "just works". This approach has worked for people in the past. You might also consider asking the author of Contact Form 7 to make the change.

xiang at 2009-06-21 19:12:34

Very professional designed small plugin. I love the test function with detailed SMTP dialogue. That is the way to program! Thanks.

Callum at 2009-07-10 12:23:28

Have you searched all the comment history for that error message? It comes up quite frequently. If you search and can't find a solution in the history, please post another comment here and I'll see what I can do.

Alessia Heartilly at 2009-11-12 12:17:07

Ok, I'll try asking a friend of mine if it's possible to install a WP on her domain with these two plugins and see if there are errors. Thanks.

Alex Dickson at 2010-06-27 16:33:01

Hey Callum thanks for your plugin. I'm having a bit of a problem, I have set it up exactly how you say in your screen shot but I am getting the following error, please help! Test Message Sent The result was: bool(false) The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Alex Dickson at 2010-06-27 17:26:00

ahh i've found this post: http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-2/#comment-35687 Judging from this I need to contact my host, but what am I supposed to say to them? It is Godaddy by the way. Thanks Alex

Callum at 2010-06-27 17:27:59

If php.ini and fopen() settings don't mean anything to you, my best advice is to contact your server administrator. I can say with 98% confidence that the issue lies with your host. The plugin is being used by a sufficient number of people on different servers that I'm confident this issue is not one with the code. Your host will most likely have to change some kind of php setting. If they do so, and it works, please post back here with your success. I've never personally seen this error, so I'm not sure what settings need to be changed on the server, I'd be interested to know.

Alex Dickson at 2010-06-27 17:28:00

sorry to keep posting like this, but is there anything I can do to edit my php.ini file that will solve the problem? If I do have to email godaddy what exactly should I be saying? Sorry for all the questions I really am a noob. lol Thanks Alex

Callum at 2010-06-27 17:35:25

In a couple of minutes of searching the history, I've found maybe a dozen people with problems on GoDaddy. They usually resort to using GoDaddy's outgoing SMTP server. I'm guessing GoDaddy do not allow you to send mail directly to external servers. I recommend you email them and explain your problem. Tell them you're trying to send emails from WordPress and it's not working. Ask them what SMTP settings you should use. Then put those into the plugin. Please try to avoid over posting here, it clutters the page and makes it harder for other people to find answers.

Arno at 2010-05-01 03:57:46

Spot on ! But they solved it last night. Thank you for putting up with my questions. I had to change some lines in one of the .php files and pronto, it all works. It would not have been possible without your plugin.

Robert at 2010-01-24 07:25:42

Callum- Your replies are really appreciated. As my SMTP host I put: smtp.gmail.com. This is because my email is a gmail account. However, do you think perhaps I should put something else because I am using freehostia as my host for my Web site and my Wordpress? Thank you so much for your time and expertise. Robert

Callum at 2010-02-23 14:00:03

What mail server are you using? Does your mail server accept mail from fakeemail@domain.com? For example, Google and gmail modify the sender address so it always appears as the gmail address (to reduce spam exploitation I believe). Is your mail server doing something similar? Can you see a log of the traffic to the mail server to determine exactly what is being sent?

Robert at 2010-01-23 21:56:32

Whoops--OK let me check the plug-in page! I think you answered it there. I am sorry for the post.

Robert at 2010-01-23 21:54:53

Callum- Thanks for your quick reply. Yes I see it. However, when I activated it, my contact-form-7 mail no longer worked (I got an error message: "Failed to send your message. Please try later or contact administrator by other way") and when I sent a test email, I got the following message below: "Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#9 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(25) "rabbidennismath@gmail.com" ["FromName"]=&gt; string(11) "Dennis Math" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(46) "WP Mail SMTP: Test mail to rlebowitz@yahoo.com" ["Body"]=&gt;" Sorry to bother you, but can you point me in the right direction? Thanks very much, Robert

Alessia Heartilly at 2009-11-09 07:59:51

Hi, I have a compatibility issue with this plugin and another I'm using on my blog, AZ-Index. I got AZ-Index to work even if it's not 2.8.5 compatible, but if I activate your plugin (or any other smtp plugin for that matter) the index I create with AZ doesn't appear; instead I get a blank page. I checked the code for a mail() function and there is nothing similar; plus the author of AZ-Index doesn't update or reply to comments since March. I really need both plugins (I run a books review blog, so I need an index, and without a smtp plugin my WP doesn't send emails), so before completely giving up on smtp plugin I thought about contacting you, since I really can't understand where is the problem. Thanks in advance for any help you may give. Alessia

Callum at 2011-02-03 12:39:21

The salient error is "Permission denied", contact your web host. If you manage the server, look at php.ini for permissions around fopen() and maybe check your firewall if it blocks outgoing connections.

Jennifer at 2011-02-03 12:45:43

Alright--shall try giving them a buzz then. Firewall should be fine at least. Thank you!

Callum at 2011-02-03 12:37:53

You could achieve this by modifying the plugin code around line 140. If you send me the from emails you want to use, I could probably whip up something quickly for you to test. It's not a feature I'm likely to include in the main plugin, but it might work for you.

Callum at 2009-08-27 16:48:17

I'm not familiar with hosting on Windows I'm afraid. I'm not sure what would cause a server error on activation. Are there any clues in your error logs?

Jeffrey at 2009-08-11 15:04:02

I am using WP Mail SMTP v0.8 and when I try to send a test email to my live.com email address, it gives me an error like this: SMTP -&gt; FROM SERVER: 550 sorry, no mailbox here by that name (#5.1.1) SMTP -&gt; ERROR: RCPT not accepted from server: 550 sorry, no mailbox here by that name (#5.1.1) But if I send test email to my hotmail email address, yahoo.com email address, gmail.com address, everything is fine. The error only happens when sending to live.com address. My live.com address is valid and active. Anyone has the same issue?

Jeffrey at 2009-08-11 15:42:02

I posted a question on Windows Live Help, and was told my live.com email is valid and active. They asked me to contact either WordPress or the plugin author. Anyone else has a live.com email and test it to see if you have the same problem? Thanks, Jeffrey

Miguel at 2009-07-12 11:40:31

hi, just installed your plugin and it works (I never managed to make email work with PHP). Only one problem: I always receive email twice... from two different accounts (hotmail and gmail)... how can I make sure that I only receive one email?

Callum at 2009-08-11 16:57:31

I'm 99% sure the error lies somewhere outside of the plugin. It could be either server, I'd follow up with the server admins for the server that returns the error.

Robert at 2010-01-24 17:53:06

Thank you, Callum. Yes, I saw the settings and used them. But there must be some problem on the server as you mentioned. I will check it out. Thanks again, Robert

Gurvir at 2011-01-31 18:58:51

S180 what settings did you use for godaddy? I have the same problem. Using godaddy for hosting but using google app for email handling.

Marci De Vries at 2010-09-16 13:55:59

I need to take your plugin off of my site and it won't let me deactivate the plugin. How do I get rid of it? I also can't turn off the SMTP function and revert back to PHP mail. Help!

Callum at 2010-09-16 14:34:03

The procedures is the same for any WordPress plugin. Deactivation is totally separate from this plugin's code, so I think any issues deactivating are with WordPress not with WP Mail SMTP. You can always remove a plugin by deleting the files. In this case, you can delete the wp-content/plugins/wp-mail-smtp folder and that will forcibly remove the plugin. It will also revert back to WordPress's standard mail behaviour. If you want to completely remove the plugin and all configuration options, remove the following entries from wp_options: mail_from, mail_from_name, mailer, smtp_host, smtp_port, smtp_ssl, smtp_auth, smtp_user, smtp_pass.

Mridul at 2010-02-09 03:52:46

I resolved that. i never changed the setting in wp-config. anyway thanks. i think my mail function is also not working in the system.

Callum at 2009-07-29 08:45:58

This plugin makes no changes to the subject of emails.

Karl Hammar at 2010-03-20 05:01:56

After further reading up on WordPress, it appears to me that I may have made a beginner's mistake - I assumed that the plugin configuration should be kept with the plugin itself, i.e. that the wp-config.php file should be created inside the plugin directory. I've now come to understand that there is a system wide wp-config.php into which one can store configuration settings. However, even pasting the configuration details into this file as prescribed does not work for me - the "Plugins/WP Mail Options" page is still displayed, and the default settings hardcoded into the wp-config.php file are not applied. I understand that this type of diagnostic, simply saying "waaah, it does not work!" might not be very helpful. Do you have any ideas about how I could diagnose the problem further to provide better error messages?

Callum at 2009-12-04 21:02:03

Which version of WordPress are you using? Do you have any other plugins installed? Try de-activating them all and see if the error persists. If you want a quick solution, you can probably set the options on that page. Look for the options mailer, mail_from, mail_from_name, smtp_auth, smtp_host, smtp_port, smtp_ssl, smtp_user, smtp_pass. If you check the source of the options page you can put the options together with the names.

Arno at 2010-04-29 01:49:10

Thanks for the swift reply: Its about Zingiri webshop. They deliver excellent support by the way, but i thought i might be able to point them in the right direction with a little help from you. http://wordpress.org/extend/plugins/zingiri-web-shop/ The shop sends out confirmation emails on order, at first this was handled by php mail, regardless of the setting in the wp backend for using smtp. Now they changed that to choose which setting u want to use so i can use your plugin, but all mails arrive raw with the tags displayed.

Callum at 2010-04-09 10:55:31

Sounds like you're seeing the White Screen of Death (WSoD) which happens when PHP dies without outputting an error. That's a common configuration on many servers. If you disable the plugin, does the registration page still refresh to a blank page?

Alex Dickson at 2010-06-27 17:16:45

Hey, I'm really sorry, it must be so frustrating for you getting the same question over and over. Is the bit you are refering to this bit: "If you see an error like “Failed to connect to server”, the plugin is working, PHP cannot connect to the server. Look at the whole error message and investigate from there.Check your php.ini settings around fopen() permissions, check your SMTP host is correct, or contact your server administrator." I'm still really new to wordpress and all this stuff and am not particularly technical, this doesn't mean much to me. I've looked at the error message and can't make much sense of it. I've had a look in the php.ini file but I don't really know what i'm looking for and i'm positive the SMTP host is correct (its exactly the same as yours for gmail). Sorry for being a newbie. Thanks for your help! Alex

Callum at 2010-05-06 00:47:28

How did you change the default address? Through the WP Mail SMTP plugin? Or somewhere else? If I understand your problem correctly, you enable the plugin, enter a custom sender name / address, and now all your emails have that address instead of only some emails. Is that correct?

Tom Koufakis at 2010-04-21 00:05:27

Here is a very useful piece of information I forgot to include. I am on a godaddy account. I can send the email fine to my own hosted account (same domain) but not to an external email address. This tells me that Contact Form 7 is not using your smtp plugin. Even though it is using the wp_mail function! ps. the last post looks like it got filtered. the test should have been: string(39) “From: test “

Callum at 2010-03-21 17:09:51

Please post your entire wp-config.php file. Make sure these tags are above the require() line. That require() line must be the last thing in the file.

Andrew at 2009-10-12 18:36:58

Sorry for spamming the blog. I just wanted to report what the issue was. I had created an account in gmail noreply@mydomain.com and I set a weak password just for testing. A password like 1234567890. When I changed the password to a 'strong' password, now gmail allows me to relay messages through this account. It was probably obvious, but I hope it helps someone. It took me hours to figure out that you need to use strong passwords ;-) Thanks again!!!!

Callum at 2009-11-11 20:51:57

You could try adding <code>ini_set('error_reporting', E_ALL); ini_set('display_errors', 1);</code> display at the top of index.php and see if that works. If there is a fatal error this might not work though.

Callum at 2010-11-19 14:07:12

I don't have any experience with 7 versus 8 bit encoded emails. However, I don't think the issues relate to this plugin. This plugin merely tells PHPMailer to use SMTP instead of mail(). The rest is up to PHPMailer, so any issues you're having are probably better addressed to WordPress core or PHPMailer directly.

sebas at 2009-08-22 16:10:08

hi, really useful plugin, works fine! thanks!

Callum at 2009-08-22 15:53:30

Can WordPress send email without using this plugin? If you try disabling the plugin, do the emails get sent? Can you monitor outgoing SMTP connections to see if the moderation message is trying to be sent? I'm not sure what to suggest. Usually if the test message works, then other emails will work.

Callum at 2010-05-21 14:58:40

This is handled by WordPress and phpMailer. If you set a "From:" header as hostgator recommends, WordPress will automatically remove it and set the $phpmailer-&gt;From and $phpmailer-&gt;FromName values instead. I recommend you use SMTP instead if you want to more fully control the headers set on emails.

Callum at 2009-08-23 18:51:14

I don't think batching is something many users would benefit from, so it's not a feature I'll add to the plugin. You're most welcome to add the code yourself though, I'll be happy to coordinate if you want to create a fork of the plugin.

Callum at 2009-08-23 21:39:56

I think it's too much work to code it with not enough benefit. If you really want that feature I recommend asking somebody on <a href="http://www.rentacoder.com/" rel="nofollow">RentaCoder.com</a> to code it for you. Good luck. :-)

Bratislav at 2009-07-17 07:32:58

Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#110 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(32) "komsijawebdizajnstudio@gmail.com" ["FromName"]=&gt; string(25) "Web Dizajn Studio Komsija" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(57) "WP Mail SMTP: Test mail to bratislavradivojevic@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(30) "bratislavradivojevic@gmail.com" ["Password"]=&gt; string(8) "batabata" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#109 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(13) ["errstr"]=&gt; string(17) "Permission denied" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(30) "bratislavradivojevic@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_c74c1c0a285527a83c1f6e3a1cfbd18e" [2]=&gt; string(35) "b2_c74c1c0a285527a83c1f6e3a1cfbd18e" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Permission denied (13)

Callum at 2010-02-11 13:21:10

Interesting problem, I haven't heard of this type of issue before. I'm pretty confident all WordPress related emails go through the wp_mail() function. Not sure what's going on there. If the bounced emails are coming from your outgoing SMTP server then it sounds like the plugin is working correctly and the emails are being sent out via SMTP. What are the bounce back error messages?

Andrea Starz at 2009-07-16 01:40:21

Little problem. The plugin connect to SMTP server correctly but not sent mail because it require a NTLM authenthication for users. Have any idea to resolve this? Is planning in future version of plugin? Thanks

Joshua at 2011-11-24 02:38:26

Hi thanks for the great plugin, unfortunatly it is not working right now I am running the latest version of WP with the latest version of Genesis Framework. I am unable to activate the plugin all of a sudden, originally I couldn't deactivate it and it was preventing me from adding a custom menu any ideas on what is going on? Thanks Josh

Callum at 2009-07-24 11:17:48

I haven't had a chance to look at this yet. I think all the strings are passed through the translation engine, so my guess is that maybe there's an issue in the Portuguese translation file. Where did you get that file?

Kim Flournoy at 2009-06-25 11:38:23

I went ahead and tested it on a 2.8 installation, and everything seems to be working fine. Thanks again!

Jonathan Denwood at 2009-09-20 19:32:49

Hi Callum great plugin? I have a question which I hope you might help me with? After I uploaded the plugin and set it up it allows you to do a test email which worked but when I tried the normal cforms 2 I still don't get a email does anyone know if cforms 2 works with with Google Apps and your SMTP plugin? I thought this would be in general a good question because the cforms 2 is a very popular Wordpress plugin form generator. Take care Jonathan

Callum at 2009-09-20 20:04:43

Look 7 comments back, identical question answered. Even a quick ctrl-f search of the page for 2.8.4 would have answered your question instantly. I'll add a note to the plugin so that it shows as compatible with 2.8.4.

Miguel at 2009-09-15 13:01:49

Hello All, I am currently using this plug-in with WAMP/WP (latest versions) on Vista Ultimate, but i get the following error: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (28698384) I am configured for gmail as specified in the instructions. Als0,I have uncommented the use of php_openssl.dll in the php.ini file, but still no luck. Thanks in advance for any help.

Glenn at 2009-08-06 16:58:11

WordPress 2.8.3 with WP-Mail-SMTP / Version 0.8.2 At this time everything seems to be working great! Have tested some common email host such as: hotmail yahoo gmail comcast And a few other odd ball hosts' and all seem to work good. Thanks for all your hard work making &amp; updating this pluggin.

Callum at 2009-09-05 18:52:43

I'd guess the issue lies in your PHP ini settings. I suggest contacting the server administrator or if you admin your own server, look at the fopen() settings and SSL support in pho.ini.

Callum at 2009-09-05 18:57:16

The second part is language strings, so it contains all the various error messages. It confused me when I first saw it, but you can safely ignore it. The key error is "Failed to connect to server: Connection refused (111)". Sounds like your PHP ini settings around fopen() permissions and SSL support (if you're using SSL).

Callum at 2009-09-05 18:59:21

Nope, doesn't look like a version problem. The error tells you everything I can. PHP cannot connect to the host. I'd suggest checking the hostname, double check the DNS settings on the server, try connecting from the server to the host, and check your php.ini settings around fopen().

Callum at 2009-11-05 21:35:08

The first wp_mail() looks good. Can you successfully send a test mail? How do you know the easy contact plugin is not working? I just had a quick look at the code and it looks like if you preface the mail() function with wp_ on line 260, it should work.

Callum at 2009-09-05 19:22:33

Not sure what's going on here. I don't know if GoDaddy support PHP's mail() on their servers or not. Try uploading a test file, outside of WordPress, see if that works. Something like: <code><?php mail('enter_your_email_here', 'Test file', 'This is a quick test'); ?></code> Then hit that file in your browser. If you get an email, it works. If not, it doesn't. You might also see an error on the screen. Try asking GoDaddy what you should use as an SMTP server on your hosting account. That will probably not require SSL, in which case, test that with SSL disabled. If that works, the issue most likely lies with you PHP SSL setup. If not, then the problem probably lies elsewhere. I'd suggest looking at your php.ini settings around fopen(). I know other people on GoDaddy have used the plugin and found it worked for them, after they used the correct SMTP server (check the recent comments, I can't remember what server works off-hand).

Callum at 2010-04-24 16:25:34

Omarf had exactly the same <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-4/#comment-45633" rel="nofollow">issue</a>. The solution is posted there.

Carter Baker at 2010-04-06 21:30:25

Okay, well, I get errors a lot, and I'm not blaming your plugin at all, but I was wondering, what email client, server, whatever should I use, aol, and gmail haven't worked out well.

Tom Koufakis at 2010-04-21 23:50:00

I forgot to mention....it IS working now.

ray at 2010-10-12 09:32:49

Yup! I downloaded that plugin and it all works. Thanks~!

Callum at 2010-09-02 17:15:01

You make an excellent point. If you write all the info to wp-config.php the admin page will disappear and the password will not be visible to blog admins. This is the best option from a security standpoint. There is currently no option to write just the password to wp-config.php with the rest set through wp-admin. I don't see any benefit in that. I'll add something recommending this as providing greater security.

Callum at 2010-09-02 17:18:37

I don't fully understand your problem. Question 1: Can you see the admin page under Settings &gt; Email? Question 2: Can you send a test mail from that admin page? If other plugins use the mail() function, they will ignore this plugin. You can usually replace mail() with wp_mail() and it will "just work".

Callum at 2010-09-02 17:36:53

Darn, I used to keep a copy here, but it was a pain hosting both. Nope, no changes on my end. I think Automattic are working on WordPress.org during this 3 month period. I see some changes there. Maybe they fudged something. I see a download link and just successfully downloaded the plugin (both logged in and not). Can you get it now? I'll email you a copy of the plugin anyway in case you're still having issues.

Bira at 2010-02-23 10:51:58

Hi, I installed the plugin and everything appears to be working perfectly. Just one niggling issue: In the "email" options settings, the Gmail password appears in clear type rather than in **** format. I'm a little uneasy about that. Is there any reason why it's "out in the open" and not password coded? Is there a way for me to change that? Thank you, Bira

Alessia Heartilly at 2009-11-12 03:58:21

I tried, and it doesn't work. I added the code at the top of the wp index.php though, hope it's ok. Still, the blog appears as usual, but when I click on the A-Z index page, I just get a blank page (I also checked the source code: nothing, completely empty). Here it is: http://amazingreaders.iblogger.org/indice-delle-recensioni/ Sometimes it works, although it's very rare. If you see the index just reload the page. I can't see errors.

Tomas at 2009-11-05 12:33:56

Hello Callum, thanks for this great plugin, but here it is my problem, whentry to send test email. I've checked all smtp settings manualy, but no luck Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#2690 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(13) "as@tomask.net" ["FromName"]=&gt; string(23) "Draudziame.lt svetainÄ—" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(40) "WP Mail SMTP: Test mail to as@tomask.net" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(15) "mail.tomask.net" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(13) "as@tomask.net" ["Password"]=&gt; string(15) "nesakysiu.85.08" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#2680 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(110) ["errstr"]=&gt; string(20) "Connection timed out" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(13) "as@tomask.net" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_02147a3d33a3e2679313f859b0a3f0c2" [2]=&gt; string(35) "b2_02147a3d33a3e2679313f859b0a3f0c2" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)

Callum at 2009-09-21 09:41:58

Correct. I don't think that's a valid excuse for not having done your research before asking a question. I see many, many repeats of the same questions because users don't search the history. I can and probably will make the FAQ more comprehensive and potentially add better search, etc. However, I release this plugin as a gift. I ask for no payment. I ask that people take the time to research their questions before asking me.

Craig at 2009-11-05 19:35:15

Has anyone managed to get "easy contact" (http://wordpress.org/extend/plugins/easy-contact/) to use wp-mail-smtp successfully? In econtact.php, I've tried changing the call to PHPs mail function... mail( $to, $subject, $message, $headers ); to... wp_mail( $to, $subject, $message, $headers ); and... wp_mail( $to, $subject, $message ); ... neither of which work. Any help is appreciated, Craig.

Callum at 2010-03-05 18:34:00

I don't understand the context of your question. This plugin only affects how mail is sent by the wp_mail() function, it doesn't change who the messages are addressed to.

Joe Pahl at 2009-10-07 15:03:39

I have your plugin installed and it seems to be working perfectly, except when I attempt to send an email to multiple email addresses at once. When I do, I get a failed call to wp-mail message. Is this a limitation of the plugin or am I doing something incorrectly. Any input is appreciated.

andrew at 2009-10-11 09:24:04

I am still getting the infamous: The e-mail could not be sent. Possible reason: your host may have disabled the mail() function... My host service says that they require authenticated smtp, however, I am trying to use gmail smtp. It works in other applications, but not in wordpress. Do I need to make the folder writable so the settings get written to a file? or this uses the database. I am at lost. I don't know how to make this work and I wouldn't like to add additional plugins to handle something that is out of the box in wordpresss. I am hosting my site in a windows servers IIs7. I hope you can assist.

Callum at 2010-04-24 16:26:59

Somebody else asked exactly the same question so I've pushed out the update. Thanks for the feedback.

Steve at 2009-08-11 12:11:34

This works GREAT! Thank you!!!!

Callum at 2010-09-12 09:43:08

I'm sorry, I don't understand your question. When you ask "Which parameter is the recipient email?", what do you mean? Are you asking about the parameters being passed to the <code>wp_mail()</code> function? That function is documented in wp-includes/pluggable.php. Maybe if you tell me more about your question I will be able to understand better and then give you a more accurate answer.

Callum at 2010-09-12 09:45:35

That's an excellent suggestion. I added the constant option because I think it boosts performance (albeit probably in a tiny, tiny way!) by not relying on wp_options. Your suggestion to add a Super Admin menu and set the options across the whole site is a good one. Likewise, the point about adding above that line is critical. I'll most likely incorporate these ideas into the next release. Thanks for sharing.

Callum at 2010-08-09 08:48:48

This is the most common error message reported. If you want to test version 3.0.1 against 3.0, try downgrading back to 3.0 and see if anything changes. I upgraded to 3.0.1 specifically to test your problems. The plugin works fine here on 3.0.1.

Christian Dahlqvist at 2010-11-19 07:49:21

Have anyone addressed trobule with 7 vs 8-bit encoding of mail? //Christian

Christian Dahlqvist at 2010-11-19 07:51:36

This is for the test mail! I had some trouble sending test mail, because it was encoded in 8-bit.

noyse at 2010-05-06 03:15:00

The opposite is the case. Every custom Sender will be replaced by the default Address in wordpress. Maybe i did not understand correct what do you mean with "default address" : if you generally ment that this is the address that is registered in properties-&gt;general (? dont know exactly because i use a german wordpress) then every custom sender will be replaced by the default address

Tom Koufakis at 2010-04-20 23:58:07

Since the mail code uses AJAX I had to do var_dump in a slightly different manner. Here is the output: string(39) "From: test "

Karl Hammar at 2010-03-18 05:23:01

Also, I should mention that removing the wp-config.php file and setting the SMTP settings for each blog in the WordPress MU install individually works well, so it appears the plugin works, only not picking up the existence of the default configuration file. Any idea on how I could investigate this further? Using version 0.8.3 of the plugin and WordPress MU 2.9.2.

Callum at 2011-04-18 10:41:49

I'm not quite sure what "resetting the plugins folder by PhpMyAdmin" actually means. There's a table in the database which is usually called wp_options. It contains option values for WordPress. The WP Mail SMTP plugin creates 10 options. You can see the list <a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/trunk/wp_mail_smtp.php#L39" target="_blank" title="Options created by WP Mail SMTP" rel="nofollow">here</a>. The list starts with mail_from, mail_from_name, and so on. You could delete those values in the wp_options table. If that makes any difference, I'll be very surprised. To be honest, I've always assumed this issue relates to human error. Somewhere along the line the user changed something on their blog and now thinks its connected to the plugin. I may be wrong in that, but I've thought hard about how any plugin could affect the sending of mail after it was uninstalled. I can't see any way that it could be possible.

Callum at 2009-09-01 01:17:22

Not sure what's causing your issue. Do you have other sites working on the same host? I'm guessing it's a server configuration probably related to fopen() permissions, but I'm really just guessing. I'd recommend comparing your php.ini files and php_info() output between the hosts that work and the host that doesn't, hopefully that will shed some light on the issue.

ovidiu at 2010-04-20 16:11:13

got filtered, sorry, I'll try again thanks, here you go: /** * The base configurations of the WordPress. * ************************************************************************** * Do not try to create this file manually. Read the README.txt and run the * web installer. ************************************************************************** * * This file has the following configurations: MySQL settings, Table Prefix, * Secret Keys, WordPress Language, and ABSPATH. * * This file is used by the wp-config.php creation script during the * installation. * * @package WordPress */ /*manually inserted for bbpress integration*/ define( 'COOKIEHASH', 'blankedout' ); define( 'COOKIE_DOMAIN', '.zice.ro' ); define( 'SITECOOKIEPATH', '/' ); define( 'COOKIEPATH', '/' ); // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'blankedout'); /** MySQL database username */ define('DB_USER', 'blankedout'); /** MySQL database password */ define('DB_PASSWORD', 'blankedout'); /** MySQL hostname */ define('DB_HOST', 'localhost'); /** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8'); /** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', ''); define('VHOST', 'yes'); $base = '/'; define('DOMAIN_CURRENT_SITE', 'zice.ro' ); define('PATH_CURRENT_SITE', '/' ); define('BLOGID_CURRENT_SITE', '1' ); /** disable Revisions */ define('WP_POST_REVISIONS',false); /** extend the Autosave timing */ define('AUTOSAVE_INTERVAL',300); /**#@+ * Authentication Unique Keys. * * Change these to different unique phrases! * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service} * * @since 2.6.0 */ define('LOGGED_IN_KEY', 'blankedout'); define('LOGGED_IN_SALT', 'blankedout'); define('AUTH_KEY', 'blankedout'); define('SECURE_AUTH_KEY', 'blankedout'); define('SECURE_AUTH_SALT', 'blankedout'); define( 'NONCE_KEY', 'blankedout' ); define( 'AUTH_SALT', 'blankedout' ); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each a unique * prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'blankedout'; /** * WordPress Localized Language, defaults to English. * * Change this to localize WordPress. A corresponding MO file for the chosen * language must be installed to wp-content/languages. For example, install * de.mo to wp-content/languages and set WPLANG to 'de' to enable German * language support. */ define ('WPLANG', 'ro_RO'); // double check $base if( $base == 'BASE' ) die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' ); // uncomment this to enable wp-content/sunrise.php support define( 'SUNRISE', 'on' ); //inserted to use gmails smtp servers for sending ALL emails in conjunction with the wp-mail-smt plugin define('WPMS_ON', true); define('WPMS_MAIL_FROM', 'suport@zice.ro'); define('WPMS_MAIL_FROM_NAME', 'zice.ro'); define('WPMS_MAILER', 'smtp'); // Possible values 'smtp', 'mail', or 'sendmail' define('WPMS_SMTP_HOST', 'smtp.gmail.com'); // The SMTP mail host define('WPMS_SMTP_PORT', 465); // The SMTP server port number define('WPMS_SSL', 'ssl'); // Possible values '', 'ssl', 'tls' - note TLS is not STARTTLS define('WPMS_SMTP_AUTH', true); // True turns on SMTP authentication, false turns it off define('WPMS_SMTP_USER', 'blankedout'); // SMTP authentication username, only used if WPMS_SMTP_AUTH is true define('WPMS_SMTP_PASS', 'blankedout'); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true // uncomment to move wp-content/blogs.dir to another relative path // remember to change WP_CONTENT too. // define( "UPLOADBLOGSDIR", "fileserver" ); // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled) // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' ); // define( 'NOBLOGREDIRECT', '' ); // On a directory based install you can use the 404 handler. // Location of mu-plugins // define( 'WPMU_PLUGIN_DIR', '' ); // define( 'WPMU_PLUGIN_URL', '' ); // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' ); // Uncomment to disable the site admin bar // define( 'NOADMINBAR', 1 ); define( "WP_USE_MULTIPLE_DB", false ); define(”ENABLE_CACHE” ,true); //added manually for object cache, unnecessary? define('WP_CACHE', true); //Added by WP-Cache Manager //-WP Tuner Plugin by MrPete------------ //-------------------------------------- $wpTunerStart = microtime(); // get start time as early as we can if ( function_exists( 'getrusage' ) ) { $wpTunerStartCPU = getrusage(); } @include_once(dirname(__FILE__).'/wp-content/plugins/wptuner/wptunertop.php'); // fire up WPTuner //-------------------------------------- //-END WP Tuner Plugin------------------ /* That's all, stop editing! Happy blogging. */ /** WordPress absolute path to the Wordpress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php'); in case it goes wrong, here is a link to the file on pastebin: http://pastebin.com/xUVeCxXQ

Ammad Zee at 2009-09-01 00:41:23

Just installed this plugin on IIS 7. Doesnt work. Every time the error is that it cannot connect to the smtp host. I have tried everything but all in vain. Just upgraded to 2.8.4. this is not the first time i am using this plugin. i have configured 6-7 other websites which are working fine. this particular environment and version is different. I hope you will give me some advice even though i have read that you arent a big fan of windows.

lifo at 2009-09-17 00:37:08

this plug in worked awesome for a few days, then i have somthing like this “Failed to connect to server” iv messing arround with files and tryng things, now i have this string(43) "Language string failed to load: instantiate" and nou output in debuguin... any idea, any help?¿ how can y revert wp mailing files to 0(cero), wich are all the files that are involved in this process? thaaaaks and sorry for my english

Ammad Zee at 2009-09-01 10:47:32

This particular site is hosted on Godaddy so i really dont have much control over the configuration of the server. Here is how the solution was approached. I called godaddy and asked them to switch it over to linux. Most of my other sites are also hosted on linux with amazon aws. They take around 24 hrs or so but honestly working with linux is super easy.

scrogers at 2009-09-01 12:33:51

Really loving the idea of this plugin, however, I am having some odd issues with it. We are running MU on OSX Server. The simple version is that I can send test mails from the plugin (working on two different servers including the one we would like to use) however, we still don't get account creation or password or login emails from wordpress. If I look at the logs and your diag output, all appears well with the test emails, but when we try to create a new blog we get nothing. In fact, an attempt isn't even being logged in the SMTP logs (but it is, and works when sending the test emails)? So, its almost like wordpress isn't using the plugin when sending these notifications? We are loving wpmu, but can't create new blogs for people. Thanks for any direction!

Callum at 2009-09-01 12:39:32

I agree, nice solution. :-)

Callum at 2009-09-01 13:10:50

Sounds like a problem within WPMU. You could try logging all calls to wp_mail() to a file. See if that helps. I've just whipped up <a href="http://www.callum-macdonald.com/code/wp-mail-log/" rel="nofollow">a little plugin</a> that does that. I've tested it, but I can't guarantee it works, use at your own risk, etc, etc.

scrogers at 2009-09-01 13:42:22

Thanks so much! I installed the plugin and it works... but is showing what I think is the issue. It creates the log file fine for us when we click the test, however, when I try to create a blog or anything else that is supposed to generate a mail message, no log is created/updated or anything. So, what does this mean? I guess your plugin is working the way it's supposed to, but any guidance on where to turn? Does this mean that our installation isn't calling mail right? Again, you have been very helpful and any direction is amazing. Thanks!

scrogers at 2009-09-01 13:54:21

WOW! Never mind. Thanks to your logger I was able to see which calls were and were not working. Upon looking at what was happening, I realized that when we attempted to create a new blog from the "outside" (not in admin) using an email address that was already in the system, it just quietly said all was fine, when really it would not send. So, this was mostly user error and us forgetting that when we moved servers we already imported a bunch of users with emails, which was catching us up. Thanks so much for this and I think we are all set!

scrogers at 2009-09-01 14:57:24

Hmm. Well just to follow up once more, it appears we are now able to create a user on the admin side and they will receive an email. From the "outside," so, going to our main site and trying to create a blog, won't work. Even though the options are set correctly (allowed with a specific email domain), an email is never generated automatically. This won't even call the mailer from what your mail logger plugin says. So, it appears the smtp plugin is working correctly, but something isn't working from the non-admin side with wpmu. At least now we can manually create the users and they can have blogs. I will have to keep working on the outside issue. Thanks again and let me know if you have any suggestions.

Callum at 2009-09-01 15:22:59

Sounds like you'll need to dig into the inner workings of WPMU and try to figure out what's going on. If you're using an option like restricting to a specific domain, my guess is that code has had less testing than other parts. You might well have found a bug somewhere, now if only you can track down where! Good luck. :-)

Karl Hammar at 2010-03-18 18:16:24

Hello, Thanks for replying. Okay, so it should work. Then I must be doing something wrong. My wp-config.php is attached below, as per your request: Is something obviously wrong with the above? When I at first tried the plugin I did not make use of this config file, but rather entered the settings into the admin page and saved. This worked well. When I then created the wp-config.php file instead, I could see no change in plugin behavior, i.e. the admin page is still there and the blogs that do not have the settings input via this admin page are unable to send email. It's as if the config file is not read at all. Could it possibly be the case that these settings were persisted in the database and are interfering with the process somehow? Cheers, Karl Hammar

Callum at 2010-03-18 12:37:26

That aspect of the plugin has been implemented. The TODO section is out of date, I've removed it. Thank you for pointing that out. If you copy and paste the section of code into your wp-config.php file, the admin page will disappear and the settings will be applied. This has been tested and it works. If you post a copy of your wp-config.php file I will try to spot any issues. Be sure to remove your passwords.

Asi at 2010-12-17 16:20:01

A few corrections to my last comment: The first line means: when I install BuddyPress plugin on WordPress installation 2nd last line: problem goes on and off as I activate and deactivate BuddyPress plugin

David at 2010-04-15 22:24:31

Nevermind - fixed. Leave it up to Godaddy to have their smtpout server work PART of the time for relay when you're really supposed to use a different server. Talk about messing with your head!

Callum at 2009-09-17 09:38:40

I think the issue lies in your PHP settings. I believe you need to do more than just enable SSL in php.ini, I think you need to also install something. You could check the output of phpinfo(), that might shed more light on the situation.

tere at 2009-09-17 16:57:29

Hi, I am starting to use this great plugin WP Mail SMTP and I found my self dealing with some errors when configuring it, but all errors were about configurations, so I kept my self changing them till I found the way to make it work for me, I have a personal SMTP host, and in order to make it work for me I have to use the Mailer option as PHP mail() and then all the info required, the plugin works great and I can´t tks u enough for developing it!!! :O) Hugs!

Callum at 2010-07-24 09:00:18

Thanks for sharing this. I've seen this error before. The plugin still works fine, I'm really not sure what's causing the issue. I'm trying to look into it.

Callum at 2009-09-17 22:21:03

The plugin provides an option to use PHP's mail() function. Under the "Mailer" setting choose "Use the PHP mail() function to send emails."

lifo at 2009-09-17 22:25:27

yes, it work very fine for a week or two but now its not working... i think that some file involved in php mailing process is broken i dont know waht to do...

noyse at 2010-04-29 10:32:07

hi i had use your plugin not long ago together with contact forms. it seemed to work fine but i noticed that the plugin replaced the senderadress with the standard email account that stand in the wordpress properties. That wasn't very useful so i cant answer someone directly. is it possible to tell the plugin to not doing this? THX

Alyen at 2010-08-10 00:26:33

Now the same problem, I q is the host, because I find no fault. Thanks for answer, a greeting. A'm haceindo the translation of the plugin at (pt_BR) Portuguese of Brazil, where it has left uma msg here.

Callum at 2010-04-28 18:14:05

You can access the admin screen through Settings > Email. I borked the settings menu in version 0.8.4 and failed to fix it in 0.8.5. It's now fixed in 0.8.6, I dearly hope anyway!

Subhramani at 2010-07-03 23:44:47

I have the same issue after I upgraded to Wordpress 3.0. Is there any page where I can download any of the older version of the same plugin to see if that makes a difference? May be I upgraded your plugin and the new one is causing this error?

Callum at 2009-10-18 21:11:43

Emails sent through wp_mail() will be sent via SMTP if you have that option configured. I'm not familiar with how Gmail handles SMTP mail, you could try asking them or checking their support docs / faq.

Callum at 2009-09-19 14:02:31

Try disabling the plugin, does it work then? Try testing mail() directly, it seems like there's a problem with PHP's mail(). The error message is "Could not instantiate mail function."

Callum at 2009-09-19 14:04:41

I'm not sure what you're asking. If you are receiving signup spam, I'm not familiar with options to combat that. This plugin only changes how emails are sent, it doesn't cause any more or less emails to be sent. I think your issue lies elsewhere.

lifo at 2009-09-19 00:39:15

well i've re upload al wp files, and plugin ones and the problem continues... al the confings of the plug in still there like they never been deleted, i dont know were its keep stored i gona copy the debugg output The result was: <code>bool(false)</code> The full debugging output is shown below: <code>object(PHPMailer)#147 (45) { ["ErrorInfo"]=> string(36) "Could not instantiate mail function." ["Mailer"]=> string(4) "mail" ["Sendmail"]=> string(18) "/usr/sbin/sendmail" ["Version"]=> string(5) "2.0.4" ["error_count"]=> int(1) }</code> The SMTP debugging output is shown below: [Callum's note: I removed irrelevant debugging info including email addresses as (sort of) requested.]

Wes at 2010-04-17 18:34:37

Sorry for the triple post, but this was in my errors_log PHP Warning: Invalid argument supplied for foreach() in /srv/http/infocalypse/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php on line 83, referer http://infocalypse-net.info/infocalypse/wp-admin/plugins.php

Alex at 2010-08-21 14:28:55

Hi Callum I just have a quick question it is this when I isntall your plugin the test e-mail works but when I try to call it to my site with the wp_mail() command noting happens at all :S I do not know what to do

Callum at 2010-08-21 14:36:30

What result do you get back from wp_mail(). I believe it returns true if the mail was sent. Are you trying to send to the same address as with the test mail function? The test function simply calls wp_mail() with a simple email and the address you enter. It sounds like you need to debug your PHP script which is a little beyond the scope of the support I provide here.

Sharky at 2010-08-05 12:11:18

Iunderstand. I am using subdomains. The email menu has actually disappeared now - but it is still not sending mail from the subdomains.

Callum at 2009-11-12 10:44:07

The PHP error logs are your eyes in this case. Without them you're somewhat blind. You could try commenting out pieces of code and see if you can pin down the error, but it's a little like performing surgery in the dark feeling your way through the organs. Best of luck.

Alessia Heartilly at 2009-11-09 09:14:06

Actually I'm on a free hosting and I can't check my error logs. Is there another way to do it? Maybe using a WP plugin?

Callum at 2009-10-09 16:42:23

From my quick test, I don't think <a href="http://codex.wordpress.org/Function_Reference/wp_mail" target="The WordPress wp_mail() function on the WordPress codex" target="_blank" rel="nofollow">wp_mail()</a> accepts multiple email addresses. I think you need to call the function multiple times, once for each address. Or use your own method of interacting with PHPMailer. This plugin doesn't attempt to modify anything to do with recipients, only the sender details. I think your issue lies outside of this plugin. Best of luck finding a solution.

Callum at 2010-01-24 00:47:04

The error message is "Could not connect to SMTP host." What have you set as the SMTP host? It's not included in the debug output you supplied. I'd suggest contacting your server admin and asking about the PHP settings, particularly about fopen() settings relating to sending email.

shanDB at 2010-05-26 12:35:26

Callum, I know the problem of "SMTP -&gt; ERROR: Failed to connect to server" is a common problem, and I've looked through all your documentation and threads for any hint of a solution.. The only thing I have found is where you have said "Check your php.ini settings around fopen() permissions" Can you give me a little more information on how I go about doing this? Where do I find the php.ini setting.. I'm kinda new to php - but have messed around with it enough over the last 12 months that I don't mind getting my hands dirty once pointed in the right direction.. So I guess, just to recap on my situation: - Windows server - set up wp-mail-smtp to work through Gmail (following your instructions) - recieving the error "Failed to connect to server..." - site Host provider has confirmed that the server is all cool with smtp - even tried my own ISP email account and settings (no love with that either) - I'm going a little crazy looking for a solution (been working on this problem for over 24 hours now) - help!

Jonas at 2010-02-10 16:32:50

I think I have a similar problem. Actually the test email in the plugin settings page works perfectly. But whenever I do a test registration or request my password, my inbox on the account I use for SMTP receives a bunch of kicked back emails--which I think are being sent with PHPMailer. Could it be that the plugin is not hooking into wp_mail? AND, yes I made sure to check "Send all WP emails via SMTP" in the settings. I'm using wp v2.9.1--Thanks!

Sputnik at 2010-04-19 00:44:30

Hey there - just a shout out to say thanks for this soft! Nice - saved my Subscribe2 install. Makes em both work a treat. All the best, Sputty

Callum at 2009-11-09 08:53:11

From a quick scan of the <a href="http://plugins.trac.wordpress.org/browser/azindex/trunk/az-index-content.php" target="_blank" title="AZIndex code on WordPress Plugin Trac" rel="nofollow">azindex code</a>, I don't see anything that would cause an incompatibility. Can you check your PHP error logs, is there any useful information in there?

Callum at 2010-10-25 21:59:15

This has been discussed many times before. Please read the history before posting. This request has been made before, it's not a good idea, you can read all about it here in the comment history if you're interested.

TheNightOwl at 2010-03-30 06:33:57

Hi, Callum Thank you for this plugin. I, like many people, greatly appreciate the work and that you're willing to answer questions here. My problem is that I'm getting a fatal error on line 428 because it's not recognising the "esc_html" function, apparently. I asked someone who knows more about php and WP than I do and he said it's because the plugin is expecting a folder called "/plugins/". Yeah, of course it is. But what has got me confused is that there's no full filepath in the "wp_mail_smtp.php" file to "/plugins/". This geezer then said that's because it's somehow calling the default filepaths ... and [<em>insert gobbledygook here that I'm afraid I didn't understand</em> :( ]. Now, I've renamed my plugins folder (and changed some of the core WP code to point to the new folder -- which, we'll call "turnips/" say...) and usually I just do a "find'n'replace" in a plugin's code. So, for example, I simply swap out "/wp-content/plugins/" for "/wp-content/turnips/" in the filepaths. I hope I'm making sense here! LOL! But I can't find any filepaths containing "/plugins/"! So, what do I have to alter to get it to point to "/wp-content/turnips/" and not automatically look for "/wp-content/plugins/" Thanks very, very much!

Callum at 2009-10-11 21:54:11

No file permissions are required, settings are stored in the database. Where do you see that error message? Have you used the test email facility in the plugin?

Callum at 2009-10-12 18:42:55

Thanks for sharing the solution, might be helpful to others.

Andrew at 2009-10-12 18:05:37

I see the error message when I try to get a password emailed to me in the admin login page. (I try that as one of my tests) Also, if I try the test mail in the plugin, it never gets delivered to the inbox. I talked to the support from my hosting provider and they indicated I needed to use their authenticated smtp. (They didn't give me any support when I asked for gmail smtp). I am lost here... Any help will be greatly appreciated. A.

Callum at 2009-10-12 18:33:07

Glad you got it sorted. :-)

Vanessa at 2010-02-19 10:54:18

No, i didn't change a thing. Not the SMTP settings, not the PHP settings. And i can't change the site back to the directory because it should work in the root, the directory was temporal. When i moved the site the database went crazy and i had to deactivate all the plugins and active them back one by one. Before that i was desperate to fix the website and i don't want to go through that again, but the email is a big problem. The users can't complete the registration. If i deactivate the WP Mail SMTP the mail still won't work. Please help :( Should i send an email to the hosting company asking them to active the SSL in PHP? Although i don't understand why it would work before..

Callum at 2010-02-19 11:14:12

You can ask your host if they've changed any PHP settings. You can check your PHP settings using phpinfo(). If you had database problems, I recommend re-checking all your mail settings. Try checking wp-admin/options.php and look through the settings to make sure the are correct there also. You can try re-uploading the plugin code, that will ensure there are not any issues in the code. However, I'm guessing your issue lies elsewhere.

aditi at 2009-12-15 01:15:51

i installed this plugin.still no activation emails are sent.can anyone tell me all this mailer settings which are given for google apps from where should i do these settings?

aditi at 2009-12-15 01:20:28

hi i am posting the error msg i got..hope it'll make things clear in C:\xampp\htdocs\wordpress-mu\wp-includes\pluggable.php on line 865 http://localhost.localdomain/wordpress-mu Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress-mu\wp-content\themes\bp-sn-parent\header.php:3) in C:\xampp\htdocs\wordpress-mu\wp-includes\pluggable.php on line 865

aditi at 2009-12-15 01:22:29

sorry it was incomplete..here's the completer one http://localhost.localdomain/wordpress-mu Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress-mu\wp-content\themes\bp-sn-parent\header.php:3) in C:\xampp\htdocs\wordpress-mu\wp-includes\pluggable.php on line 865 http://localhost.localdomain/wordpress-mu Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress-mu\wp-content\themes\bp-sn-parent\header.php:3) in C:\xampp\htdocs\wordpress-mu\wp-includes\pluggable.php on line 865

Andrew at 2009-10-12 18:30:33

Nevermind!!!! It was [stupid] user error. Something related to my accounts in gmail. It works with one account, but does not work with another account. I will need to finetune in Gmail... Your plugin is amazing!!! Thank you very much.

Callum at 2010-02-12 12:46:24

I added a reply-to header. The code is completely untested so I've emailed it to you privately. Please test it and post back how you get on.

Callum at 2010-06-27 16:44:04

Please, please, please, read the plugin page. This is the single most common error that is reported here. It has been asked and answered many, many times and it's addressed in the very text of the page.

Eitan at 2010-05-11 12:58:46

Hello, do you plan to add support for translating this plugin to other languages? thanks.

Callum at 2010-05-21 14:29:55

Great, thanks for contributing the translation. I'm sure somebody translated the plugin some time ago, but I think I lost their translation. I've committed your files to SVN so they will be part of the next release. :-)

Paul Geisler at 2010-06-09 12:59:38

Hi and Thanks for your very good and helpfull plugin! I have a question about the password text field in the options. Why is the password not hidden? In my opinion it is a very bad security vulnerability. Firstly, because there may be more than one administrators of the page but only one of them could be the post box owner and it's nasty that the other one could read the user name, the password and where the server is. With that he also could read the E-Mails. Secondly, the bad, bad hacker could get the Blog-Password and will have no problems to get the post box password too... really annoing. :( Please tell me when you will have some thoughts about it otherwise i will try to modify the code by myself. Thanks again for Your good work! Paul

Brian at 2010-04-28 05:17:06

I installed the plug in, activated and click on settings and all I get is a blank screen in the center and my admin controls along the left?

Strategerizer at 2010-11-10 18:21:41

Hi, regarding the password being visible, I see the excahnge you had with Josh Schneider above and the suggestions given: ...put the password in wp-config.php in a constant, along with the db password ...create a file with only the constants defined, owned and only readable by the web server user ...a dedicated mailbox always makes good security sense I do not know enough to understand how to implement those suggestions. I can create a dedicated Google Apps email account but not clear on the rest. I am sure there are lot of other people that could use more explicit steps on what they need to do to ensure the exposed password is not a security concern (as you see many post here with the same question). Maybe have that part of your FAQs or Readme file? I noticed in the Changelog of another plugin (Configure SMTP) there is this recent mention: "Update plugin framework to 017 to use password input field instead of text field for SMTP password" Not sure if this is what you have already addressed that it is just a cosmetic fix, since the file contains the password as plain text... just wanted to mention it FYI, in case it provides another solution. Thanks!

JD at 2010-02-11 18:51:09

Hi Callum Thanks for very useful plugin :). I have installed it on a WordPress site and Emails are sent without errors. However, there are a couple of issues when it is used with a particular plugin. I use the <a href="http://wordpress.org/extend/plugins/contact-form-captcha/" rel="nofollow">Contact Form Captcha</a>as my "contact" plugin and it works fine without WP Mail SMTP. However when your plugin is enabled (it uses the <strong>mail()</strong> function which has been changed to <strong>wp_mail()</strong> as recommended), the email is sent and received but the sender's email is not forwarded from the form. Additionally the last letter in the surname is truncated: For example if I use an email address such as <strong>test@o2.co.uk</strong> to send a message via the contact form which receives emails via a googlemail account <strong>test@googlemail.com</strong>, the result will be as follows from Firstname Surnam to test@googlemail.com date Thu, Feb 11, 2010 at 10:04 PM subject Test Message mailed-by googlemail.com The googlemail account used to receive emails is seen in both the "To" and "From" fields, and the sender's address is not received. Also as mentioned above the last letters in the sender's surname has been trimmed. Any thoughts on why this is happening? Cheers JD

DW at 2011-02-16 19:35:33

Yes, and the error looks the same: The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 p3nlsmtp02.shr.prod.phx3.secureserver.net ESMTP SMTP -&gt; FROM SERVER: 250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 250 8BITMIME SMTP -&gt; ERROR: AUTH not accepted from server: 502 unimplemented (#5.5.1) SMTP -&gt; FROM SERVER: 250 flushed

Callum at 2011-02-16 19:39:21

This error looks to me like authentication is enabled when it doesn't want to be. I'd suggest contacting GoDaddy to ask what settings you should use to send mail by SMTP from your server.

DW at 2011-02-16 20:12:15

Yeah, been there...done that. They told me to use Port 21 instead of 25. When I do that, it says can't connect to SMTP server. I'm at a loss.

Patrik at 2009-12-03 12:38:43

Hi Callum, I'm using Contact Form 7 and yours plugin (v. 0.8.2) with GMail SMTP settings on WP 2.8.4. I'm getting "Return-Path" twice in the e-mail header, once with GMail address and secondly with sender address, anyway "From" field is GMail address not sender's. Have you any idea how to stop overwrite "From" field, please?

Wes at 2010-04-17 17:31:41

Hi, I'm having some issues with this plugin. For some reason when I try and send a test email, or register an account or anything with email it doesn't work (it used to and I didn't do anything afaik). Now the real problem is that there isn't any debugging output when I try and send a test email, just a blank page. I've tested it with a couple different browsers and it's the same thing. I don't have any other plugins that could be interfering, and I'm using the latest version of Wordpress and this plugin.

Eitan Caspi at 2010-05-21 10:44:25

yep. now its fine. I sent you the files by mail.

Callum at 2010-04-06 17:19:17

Wow, sounds like you're really getting your hands dirty hacking WordPress. :-) I can say with almost complete certainty that your problem does not relate to the name of the folder. I'd say that's a wild goose chase and then some. Which version of WordPress are you using? I accepted somebody else's code to add a settings link to the plugin page and in doing so, I introduced a requirement on WP 2.8 forwards without realising it. I've fixed that but I'll wait to release until there's something else. No sense in pushing out a new version just for this obscure fix. If you're using a version of WordPress prior to 2.8, I recommend upgrading as soon as possible. If not, then try posting the error you're seeing including an excerpt from your PHP error log if you can. I'll take a look and see what I can recommend.

Christian Dahlqvist at 2010-11-19 15:02:27

It's works fine when running the site, it is just the test mail that doesn't work.

Callum at 2010-02-02 13:23:07

Have you selected SMTP as your mailer choice? I'm not sure what's causing your issue, it is almost certainly related to your host not WordPress or the plugin code.

Michael Penner at 2010-08-19 17:25:15

What a GREAT plug-in! I just wanted to verify that I too am experiencing this issue. I'm on WP3.01 fresh install. In fact yours is the only plug-in , and first plug-in, I activated this afternoon for the new site I am building. I don't know if the theme matters (I'm not a coder), but I am only using the 2010 theme at this point. Hope this helps in some way.

Callum at 2009-12-04 21:15:55

I think what you're seeing is how Gmail process outgoing email. I believe they set the Return-path to stop people using their servers to generate spam and fake the from address.

Sharky at 2010-08-05 13:28:51

This is bizarre - I actually get the mail! This is a test email generated by the WP Mail SMTP WordPress plugin.

Callum at 2010-08-05 13:30:22

Then I think the problem lies somewhere else, not with the plugin. I'm not sure what to suggest.

Sharky at 2010-08-05 13:33:50

No problem. I'll look further.. thank you very much for the quick support and your efforts.

Grizzo at 2010-06-13 13:07:49

Thanks, no idea why it wouldnt work with that account...

Callum at 2010-08-11 08:03:02

I don't fully understand your message. Are you making a Brazilian Portugese translation of the plugin? I'll be happy to include it in the next release if you are. Did you get email working on your sites?

Callum at 2010-09-12 09:52:13

Thanks for sharing. If you want to get a form working with this plugin, you probably need to change the <code>mail()</code> calls to <code>wp_mail()</code> instead. However, I prefer to use GPL code, so I would recommend the Fast and Secure plugin you mentioned. I'm looking at it myself, as I get too much spam via my contact form here on the site (with no captcha).

Ben at 2010-05-26 18:48:53

Thanks for clarifying. I will get in touch with them

Callum at 2009-11-05 15:00:16

This error message is specifically explained on the <a href="http://http://www.callum-macdonald.com/code/wp-mail-smtp/" rel="nofollow">plugin page</a>. Please don't waste my time asking questions that have already been answered.

Wes at 2010-04-17 17:59:30

Just to follow up to my comment, I was having the same problem as the person above where it would go to a white screen when registering. Disabling the plugin DID fix this for me, so I guess it is somehow related to this plugin.

Dustin at 2009-12-06 02:46:54

Ended up being an issue with all plugin in Chrome. Worked fine in FF and Safari.

Callum at 2010-08-20 23:46:48

This plugin is called WP Mail SMTP and wpMailPlugin is nothing to do with it. This plugin is unrelated to the error message you've posted.

Callum at 2010-06-16 10:30:38

Apologies for the slow response. Your numbers don't add up as I'm reading them. If the emails are being sent every 3 minutes, you could send only 40 emails in 2 hours, not 5'000. I'd say 5'000 messages in 2 hours is a reasonable speed, but I'm not an expert in such things. Are you using another plugin to send the 5'000 emails? Perhaps it has some sort of queuing mechanism? There's nothing in the WP Mail SMTP code that relates to limits or time delays or anything of that nature.

Tom Koufakis at 2010-04-21 23:49:29

I tried the array thing and it absolutely did not work. I did find this page on the net: http://angstrey.com/index.php/2009/07/20/contact-form-7s-failed-to-send-your-message-error/ My hunch is it may be a workaround by only sending the hosted domains own email address. Check out the checklist.

Omarf at 2010-04-22 00:33:04

Callum, When I try the Settings page I'm getting "You do not have sufficient permissions to access this page" after updating the plugin to version 0.8.4 (/wp-admin/plugins.php?page=wp-mail-smtp/wp_mail_smtp.php) The file permission for wp_mail_smtp.php on my server is 644, like all other plugins, and the wp-mail-smtp folder has permissions set to 755, also like other plugin folders.

Gregory at 2010-11-13 17:43:34

Update: Tried using Scott Reilly's Configure SMTP, and the same issue occurs. Interesting...

Gregory at 2010-11-13 17:31:21

I'm using WP 3.0.1 with ContactForm 7 2.4.1 and Contact Form 7 to DB Extension 1.4.1. I seem to be having the same issue that Josh Schneider had - WP Mail SMTP 0.8.6 overrides the "From:" Email field in the contact form plugin with the default admin email. However, the From: Name field is NOT overridden, oddly enough. So you have the This behaviour is the same whether I leave these two fields blank in the WP-Email-SMTP options panel. This behaviour does not appear when WP-Mail SMTP is deactivated. I haven't messed with any of the code. Looking at the email headers, I noticed two Return-Path headers, one with the default admin email and another with the email from the contact form submitter. I'm not sure if this is an issue with CF7 or WP-Mail-SMTP, but I've notified you both!

Callum at 2011-02-16 19:34:08

Have you tried authentication off?

Callum at 2011-02-16 18:47:55

Without specific error messages I don't know what to suggest. I don't have any contact with hosting on Windows servers, so I'm ignorant of most of the issues faced there.

DW at 2011-02-16 18:50:43

My errors are similar to everyone else: The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 p3nlsmtp03.shr.prod.phx3.secureserver.net ESMTP SMTP -&gt; FROM SERVER: 250-p3nlsmtp03.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 250 8BITMIME SMTP -&gt; ERROR: AUTH not accepted from server: 502 unimplemented (#5.5.1) SMTP -&gt; FROM SERVER: 250 flushed I'm just trying to figure out how the same settings work for everyone else, but produce these errors for me.

Callum at 2011-02-16 19:09:17

What settings are you using? It seems like relay-hosting.secureserver.net port 25 with no authentication. From your logs I wonder, do you have enabled authentication?

DW at 2011-02-16 19:25:03

That error came from usinng relay-hosting.secureserver.net Port 25 Encryption off Authentication on

Callum at 2010-05-11 13:05:29

Hmm, strange. I thought the plugin had been translated once already, but I can't find the files now. I believe text in the plugin is all passed through the translation functions, so you could create the translation files from that. I'm not familiar with translation, but if you need anything else from me, please let me know.

Rob Fortenberry at 2010-02-01 21:48:49

I have tried everything that I can, to include calling godaddy.com, who hosts the site, and get the same message when I attempt to do a password recovery email. The e-mail could not be sent. Possible reason: your host may have disabled the mail() function... any help will be greatly appreciated

Josh Schneider at 2010-10-22 17:48:01

Yes, that would be a good place to start. I'll test that later and see what I get. I'm familiar with PHP, but that doesn't mean I'm good with it. Of course, if disabling WP Mail SMTP resolves the issue, that'll be a different situation. Thanks.

Callum at 2010-09-09 07:49:58

Thanks for sharing your feedback. As I read the code, there's no connection between the From email address and the options to use encryption. Have you observed this behaviour on multiple SMTP servers? I believe that Gmail for example forces the From address to be the Gmail address, I assume to reduce spam. Is the mail server you're using doing something similar perhaps?

Callum at 2010-06-06 12:58:35

I don't fully understand your comment. As I read the code, this is what happens. When an email is sent, we filter the From email and From name values. If they are different from the WordPress defaults (maybe generated from a contact form), we leave them unchanged. If they are the default (WordPress<wordpress at yourdomain.com) values, we modify them to the values set by the plugin. Are you reading the code differently? Or are you experiencing something different? Interestingly, I've noticed what I wrote on the admin page is wrong. I say that the "admin email" will be used if the From email is blank. That's not true. Apologies if that caused confusion. I continue to be amazed at how many bugs can be found in so little code! Thanks for helping me to track down this one.

Callum at 2011-01-06 08:01:21

Not currently. How would you imagine that working? How would the plugin choose which SMTP account to use? What would be the advantage?

Callum at 2011-01-06 08:06:19

Do the CC or BCC recipients get handled properly if you disable WP Mail SMTP? I'd imagine one of the following scenarios is causing your issue. The PHPMailer class that ships with WordPress has some issue around CC and BCC recipients when sending by SMTP. There's some issue with the way you're setting CC / BCC headers. Your mail server is not properly processing the CC / BCC recipients. To be honest, I'm not sure what to suggest or where to start debugging. I can see no reason why the plugin would be causing any issues with CC or BCC recipients. The code is very simple, it switches the mailer based on a few options and modifies the from name and email. Otherwise, PHPMailer is left to its own devices.

bart at 2012-05-02 15:55:23

Callum, I just wanted to thank you one more time to help me bring this to a close. Your final test finally helped me convince the host that the issue was on their side. They in the end acknowledged that they had put a "spam prevention security measures on -their- our end". Cheers!

Bob Roberts at 2012-05-02 14:45:36

Installed plugin WP-Mail-SMTP Version 0.9.1 ("Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings"). I'm using smtp.gmail.com with the recommended settings, and it's able to send a test email. That's fine, but I'm having trouble translating that into where the email is actually being sent in the PHP program, which is called formprocessor2.php. I've seen the general recommendations to change mail() to wp_mail(), but I don't really understand the specifics of how to do that. I did try changing the mail() command in formprocessor2.php to wp_mail() and got this error: Call to undefined function wp_mail() in C:\wamp\www\testsite\rosterform\formprocessor2.php on line 86 Here is the PHP code that actually sends out the mail: `$headers = "MIME-Versin: 1.0\r\n" . "Content-type: text/plain; charset=ISO-8859-1; format=flowed\r\n" . "Content-Transfer-Encoding: 8bit\r\n" . "From: My Test Company \r\n" . "X-Mailer: PHP" . phpversion(); //ini_set("SMTP","mail.mytestcompany.com"); // Mail Server //ini_set("smtp_port", "25"); // SMTP Port //ini_set("sendmail_from", "mail@mytestcompany.com"); //return address $result = mail(implode(",", $recipients), $subject, $mail_body, $headers); //mail command`

Callum at 2010-09-17 14:58:33

Thanks for sharing. I'm glad the plugin is working for you. I do not agree with your statement that the input field *should* be type=password. This has been discussed several times before.

Paul Geisler at 2010-06-09 16:37:11

Unfortunately i don't have any experience with forums and how much more work they produce but i think more than 500 comments and questions are a good reason even its only for one plugin. May be there will be more plugins or other stuff to discuss. :) You're right about type="password". I will let you know when i figure out some kind of solution or ideas. Thanks for the discussion, have a nice rest of the week! :)

Callum at 2010-11-19 13:52:35

I don't think the plugin supports "network enabling". I think you need to set the options in wp-config.php as constants if you want to use the plugin on a multi-site installation. Apologies if that's not explained clearly in the documentation. I'll look to update the code to more fully support multi-site installs.

JD at 2010-02-13 10:58:06

Hi Callum Thanks once again for the response and the modified script. Your support has been fantasitic :). The modified version did indeed add a "reply-to" field bearing the sender's address, to the message sent from the contact form - yaayyy :). Oddly though, the sender's name in that field was sent as "Root User" instead of the actual "Firstname Surname". The "from" field still displayed the sender's name (with the trimmed surname) followed by the site's googlemail address: <strong>from</strong> Firstname Surnam <strong>reply-to</strong> Root User <strong>to </strong> site_email@googlemail.com <strong>date</strong> Sat, Feb 13, 2010 at 1:52 PM <strong>subjec</strong>t Test Subject 13:52 <strong>mailed-by</strong> googlemail.com Anyway, after a bit of mucking about, I reverted to the original version of WP SMTP Mail and altered the Contact Form Captcha script by replacing the "from" line in the header with <strong>$header .= 'Reply-To: ' . $name. ''. "\r\n";</strong>. It was originally <strong>$header = "From: ". $_POST[cName].""; </strong> (I have made some other significant alterations to the plugin). This worked perfectly and the resulting contact form email header is now as follows: <strong>from</strong> Sitename <strong>reply-to</strong> Firstname Surname <strong>to </strong>site_email@googlemail.com <strong>date</strong> Sat, Feb 13, 2010 at 3:22 PM <strong>subjec</strong>t Test Subject 15:22 <strong>mailed-by</strong> googlemail.com Thanks once again for all the support :). JD

Robert at 2010-01-29 16:07:40

Yeah it is the free version, so I guess this is their way of forcing you to upgrade. Anyway, thanks a lot. I really appreciate your help with all this.

William at 2010-01-29 16:16:39

Okay, the issue was resolved. My host is Bluehost. Their servers do not allow outbound connections on port 465 for security reasons. I had to change the SMTP host to my bluehost box nomber (box###.bluehost.com, not smtp.gmail.com). I also had to add the email address to my bluehost account. It is just an empty box sitting there, but it has to exist. Their servers won't allow the SMTP email to be sent from an email address that does not exist in my bluehost account. Thanks very much for answering my question. Even though tht was not the issue, it pointed me in the right direction. I had to call Bluehost twice. The first tech could not help. Persistence paid off. I called back and a different tech was able to figure it out. Thanks very much. I love the plugin.

ovidiu at 2010-04-20 16:09:11

thanks, here you go:

David Thomas at 2009-12-14 11:22:12

Hello I installed this plugin today and it has caused my whole site to go down with a "500 internal server error". I can't access the admin pages to rectify anything so I was hoping you could suggest how I might fix it? I've had a look at the htaccess file. Theres only a few lines there so maybe thats the problem. I don't have a backup of it though! Is there anything I can do? I'm on wordpress 2.8.6 Many Thanks David

Grizzo at 2010-06-11 20:39:19

Cant get emails to work: Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#173 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(20) "bsfxdesign@gmail.com" ["FromName"]=&gt; string(23) "WEBSITE-CONTACT US FORM" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(56) "WP Mail SMTP: Test mail to graham.fox@imagicsoftware.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(20) "bsfxdesign@gmail.com" ["Password"]=&gt; string(8) "xxxxxxxxx" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#174 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; resource(134) of type (stream) ["error"]=&gt; NULL ["helo_rply"]=&gt; string(139) "250-mx.google.com at your service, [74.213.170.37] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES " } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(29) "graham.fox@imagicsoftware.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_33adcc17bd5a4233278d92d3dc5cd556" [2]=&gt; string(35) "b2_33adcc17bd5a4233278d92d3dc5cd556" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 mx.google.com ESMTP c9sm194637vcs.31 SMTP -&gt; FROM SERVER: 250-mx.google.com at your service, [74.213.170.37] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES SMTP -&gt; ERROR: Password not accepted from server: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 c9sm194637vcs.31 SMTP -&gt; FROM SERVER: 250 2.1.5 Flushed c9sm194637vcs.31

Lubomir at 2010-02-13 14:39:24

Thanks for this great plugin. It was the first one i tried after i found my email are not working... It worked from the first time with my goole email entered as described above. :) Thank You Thank You Thank You

Callum at 2011-02-16 21:08:19

Port 21 sounds very unlikely, that's the FTP port. You could try sending another question to GoDaddy, see if you get a better response from a different person. I'm not sure what to suggest, I believe others have found working solutions with Windows hosting on their servers, but I don't know personally. Sorry I can't be of more help.

Robert at 2010-01-29 12:01:53

Callum- Following up on this discussion, I checked my hosting company and they do not have support SMTP. This frustrates me because I want to install a mail program on my Wordpress. Do you have any idea on how to get around this (aside from upgrading or switching hosts)? Is it possible? Thank you very much. Robert

William at 2010-01-29 12:17:25

BTW, I am using WP 2.9.1 I even tried another plugin (HGK SMTP), and different gmail accounts. I am using the settings you show on your plugin page. These are the same settings suggested by the other plugin as well (this other plugin does not have debugging output). It still does not work.It must be either a google issue (impossible to get them on the phone), or an issue with the new version of WP. Any thoughts?

FanZy at 2010-03-01 04:03:57

HI Callum I got output like this, and I've enabled SSL in php.ini The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#50 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(36) "wordpress@pandascreenproductions.com" ["FromName"]=&gt; string(5) "Admin" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(51) "WP Mail SMTP: Test mail to fanzy.dong@idfglobal.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(18) "fanzy531@gmail.com" ["Password"]=&gt; string(10) "my-password" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#51 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(108846888) ["errstr"]=&gt; string(96) "Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(24) "fanzy.dong@idfglobal.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_efda0433d85a1e2b2bc349c695f20616" [2]=&gt; string(35) "b2_efda0433d85a1e2b2bc349c695f20616" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (108846888)

Callum at 2010-07-16 08:12:30

Please read the history, this question has been asked and answered previously. I believe this is caused by Gmail, it's part of their mail setup.

Callum at 2011-02-14 14:41:27

Is your PHP script a WordPress plugin? If you deactivate the WP Mail SMTP plugin does the error go away? The WP Mail SMTP plugin shouldn't affect the declaration of wp_mail() at all. The plugin is only triggered within the wp_mail() function.

Robert at 2010-04-09 11:05:55

alrightey sir, thank you. I wasn't sure (since it's just a blank screen) if an error was even being generated in the first place.

Michael Penner at 2010-08-23 11:55:12

Yes, I can confirm it works perfectly despite the warning message. You'll be getting the same donation for each site I use your plug-in on. Seems only right given the time and expense it takes to build / support something like this. Cheers!

Alex at 2010-08-23 14:33:02

that is just it the wp_mail() when i put it into a page it Simpy does nothing at all

Callum at 2010-08-08 07:43:46

The plugin works fine on 3.0.1. If you have a specific problem, feel free to post it.

Robert at 2010-04-09 11:00:39

Thanks for the quick response! Hmm, peculiar.. disabled the plugin, indeed it still does. It didn't before, though, (just acted like an email was sent and brought you over to a normal login screen) but then again, it wasn't sending emails either ;) .. cheers rm

Callum at 2010-04-09 11:04:29

It sounds like the problem lies outside this plugin. I suggest checking your PHP error logs and starting from there. You could also try disabling all your other plugins as well, see if you can isolate the issue to a particular plugin.

Robert at 2010-04-09 11:05:11

...by the way, it appears GoDaddy has PHP Safe Mode "on" if that means anything.. It's shared hosting so I don't believe they can deactivate that for me personally ;p .. not sure if that's relevant, just thought I'd throw that out there..

Callum at 2010-08-05 11:24:27

Do you have <code>define('WPMS_ON', true);</code> somewhere in your wp-config.php file? With that constant set, the admin page should not appear anywhere. Can you send me a copy of your wp-config.php file? Please remove all the passwords and other personal data.

William at 2010-01-29 11:09:47

My error is similar to Jen's. It works for my other domains, but not the one hosted by gmail. Mine also works with Outlook. I have tried every combination of the settings. I am sure I have the settings correct, but I still get a server connection error. Mine is a little different than Jen's It says "connection timed out (110)" bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(110) ["errstr"]=&gt; string(20) "Connection timed out" } I don't understand your response above. I am not sure if I your suggestions would help me considering my issue is a little different. Can you elaborate a little more on what you said above, or do you have any suggestions for my issue? I love the plugin, it works well with my other sites, please help. Thanks.

Callum at 2010-10-10 18:14:00

It's not a contact form plugin. It only affects the way WordPress handles the sending of emails. It is compatible with various contact form plugins, I've read about people using this plugin with Contact Form 7 I think.

Brett G at 2010-08-20 23:23:54

We have a site where we get this error in our server logs when running Contact Form 7 PHP Fatal Error: Class 'wpMailPlugin' not found in ....wpcontent/plugins/wp-mailinglist/helpers/form.php We used to have your plugin installed but removed it. Obviously WP still thinks its there. How do we remove your plugin entirely?

Callum at 2010-01-29 15:20:49

It's neither a Google issue nor an issue with this version of WordPress, it's an issue with your host. This setup works fine for many, many people. The difference is your host. As far as I'm aware, Google requires the use of SSL to send mail via SMTP. Ask your host about their PHP settings around fopen() and ssl.

Callum at 2010-01-29 15:15:14

If your hosting company do not allow PHP to make outgoing connections, or otherwise block PHP from sending mail by SMTP, there is no alternative that I'm aware of. You could ask your host how they expect you to send email from your web site. I think most hosts will have some method they support. Whether you can get that to work with WordPress is another question.

Callum at 2009-12-15 17:56:08

See the troubleshooting faq, specifically the <a href="http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F" rel="nofollow">How to deactivate all plugins when not able to access the administrative menus?</a> entry. If you're sure it's this plugin that caused the issue, rename the wp-smtp-mail folder instead of the whole plugins folder. Then once WP is back, rename the folder back. Check your PHP error logs to see what's going on. I haven't had reports of any other server wide errors like this, I'll be curious to know what the source of the issue is.

Callum at 2009-12-15 17:58:24

I'm not sure about the google apps settings. The gmail settings are listed somewhere on this site, the same data applies for google apps I believe. As for your error messages, they don't seem related to this plugin. Try disabling the plugin and see if the error disappears.

Callum at 2009-12-15 17:59:31

The mail server you're using doesn't support the authentication method you've chosen. It's not a problem exactly, just that this type of auth won't work on this server. I'd suggest trying to find another mail server to use, one that does support LOGIN authentication.

Callum at 2011-03-24 12:03:43

Glad it's working. :-)

Tom Koufakis at 2010-04-20 04:57:17

Hi, I can send a test email no problem but when I try to use "Contact Form 7" plugin I can not send an email successfully. I have narrowed it down to the wp_mail call. When the headers parameter is included it will fail. If I remove the headers parameter it will succeed but I will never get the email. Any ideas? this is the line: return @wp_mail( $recipient, $subject, $body, $headers ); I have tried it with and without the @ symbol.

Callum at 2010-03-05 18:32:48

Looks like the email was generated and accepted by the mail server. From the mail server there are a lot of steps to you receiving the email in your mail client. Any of those could be the issue. Try using a different mail server, see if that works. Otherwise, try sending a message to the mail server from your client. See if it works that way. I'm not sure where your problem lies, but the plugin appears to be working correctly.

Marty at 2010-03-17 11:38:48

I just updated it, and it still gives the same answer. It seems I can't switch over to SMTP.

Callum at 2010-02-14 10:29:40

Apologies, a simple bug in my updated script. I'll send you a new copy, would you be so kind as to test it? I think it will be easier to maintain this way, you won't have to worry about updating plugins and overwriting your custom changes.

Callum at 2010-04-28 18:27:49

I don't understand your question. Which plugin are you having problems with? Can you post a link to it on WordPress.org?

Sharky at 2010-08-05 11:31:34

Hi Callum, Thanks for the quick reply. I sent you an e-mail with attachment!

Callum at 2010-08-05 11:38:53

Your wp-config.php looks good. Not sure what that notify.php files is, it doesn't seem connected to me. Have you activated the plugin so it's automatically enabled across all blogs? I'm struggling to think of what's causing the issue. You only have one, single wp-config.php file, correct? Please use the reply button below this comment to reply, keeps all the messages connected. Thanks. :-)

Sharky at 2010-08-05 11:41:52

Hi Callum, I have activated the plugin. I tried putting it in /wp-content/plugins and then activated it, tried network activating it and also tried putting it in /wp-content/mu-plugins/ - none of the options worked. I only have one wp-config.php file. I included the notify because I found this line in it: $ok = wp_mail( $email_to, $email_subject, $email_message, $headers );

Callum at 2010-08-05 12:00:44

Sharky, please use the "reply" link to post your responses. On the comment page underneath each comment there's a link that says "reply". That causes the comment to be logged as a reply to my message instead of starting a new thread. Do you understand what I mean? Are you using subdomains or subdirectories for the sites? I've just installed a test site on my dev server and the Email menu disappears everywhere after I add the WP Mail SMTP settings to wp-config.php. I'm not sure what else to suggest.

Callum at 2010-04-21 13:17:30

Thanks for posting, your file looks fine. My apologies. I included a patch that was submitted to me and inadvertently added a second options page which I had no idea existed. It was a complete mistake on my part. I'm deeply sorry for the lack of care and attention to the code I pushed out under my name. I'll try to make sure this doesn't happen again. I believe version 0.8.4 will resolve your issue. I'm emailing you a copy now because it will take a little time to reach wordpress.org.

Callum at 2010-04-21 13:49:47

Try modifying that line to this: <code>$headers = array($headers); return @wp_mail( $recipient, $subject, $body, $headers );</code> If you disable the WP Mail SMTP plugin, does Contact Form 7 send emails correctly? If not, I think the issue might lie in that plugin. I've looked at the code of Contact Form 7 and the wp_mail() call looks fine. The code is quite complex, I'm not sure if it is somehow being fired before the other plugins are loaded. If that is the case, and wp_mail() is being called by Contact Form 7 before plugins are loaded, that would mean the settings in WP Mail SMTP are ignored. I recommend contacting the Contact Form 7 author to see if they can help at all. I'm at a loss as to what to suggest.

ovidiu at 2010-04-21 14:10:23

thx. seems to have worked. I no longer find an options page :-)

JD at 2010-02-14 18:00:11

Oh, I forgot to mention that in the second case (using "Reply-to:" and no "From:"), the sender's surname was forwarded fully. There was no truncation problem.

Ben at 2010-05-26 05:46:41

Hi Callum, I was using Contact Form 7, having successfully been using your plugin for other functions (Thank you!). However, my host decided to block my email as soon as someone used the form with a gmail account to contact me. When the email came through, it appeared as if it was coming directly from the person's email account so I could respond. All seemed fine until I got this: Hi, The reason that the mail was blocked is that someone had sent a Gmail email using our outgoing server. It may be that they have both accounts set up in their mail client and the Gmail one is set to use our server. This is against our terms of use as it can result in us being blacklisted. We have to ensure that you have taken steps to resolve the issue. We operate a three strikes policy and were it to happen a third time we wouldn't reinstate your mail services. The following log was generated : Auth ID stickman@stickmancartel.com has sent 1 gmail emails... Locking LDAP password...Success - LDAP password locked ASMTP Caches cleared Source IP Address is last recorded as: xxxxxx It may be wise to look at the script of the form on your website in order to ensure that we don't flag up your account again. Please forgive me if I am being naive about this, but i've had a look and couldnt find a similar issue. Do you know how I can prevent this from happening? Thanks

Kellie McCann at 2010-05-01 12:06:39

Thank you. I did read the support page and maybe I am missing something, but looks like there have been issues...but I just loaded my site onto wordpress and find all these apps are not working right off the bat. I am not a programer, a professional photographer. I dont have time to waste either as my business is very busy. I have also seen issues reported on another site...I guess I overreacted as well, but I honeslty am trying to make this thing work and I have become frustrated as others apparently. Off to a wedding, no time to go back and try to figure it out now...maybe another day :)

Callum at 2010-05-01 11:59:46

Kellie, you asked a question which has been asked and answered many, many times already. The answer is included in the plugin's support page. I wrote, released and support this plugin for free, as a gift to the WordPress community. When people ask questions without first reading the FAQ, I feel like my gift is being mistreated and my time abused. I apologise that my message was rude. I received the same question twice in one day and I overreacted.

George Hsieh at 2010-10-18 03:59:47

Thanks for your reply, I'll try it. BR, George

Callum at 2010-05-11 12:37:53

Can you try disabling all other plugins except Contact Form 7 and WP Mail SMTP? Does that work any better? What about comment notification emails? Do those work correctly? Are you seeing the user's name when you get a comment email? Are you able to reply to them? Have you tried contacting the Contact Form 7 author? I understand your problem. I'm using the same option on my own site, and it works as it should do. I haven't had any other bug reports relating to this issue. I've also double checked the code and it all still looks good. I'm at a loss as to what I can suggest. The only thing is maybe I could take a look at your server, but it will be a week or two before I have time to do that, if you're willing.

Ovidiu at 2010-04-26 11:03:11

great, thx.

JD at 2010-02-14 17:43:32

Hi Callum Thanks for responding once again and for providing the "debugged" script. Although the issues on my side had been solved, as indicated earlier, I was more than happy to test your latest revision. It would have been rude to let your selfless and diligent efforts go to waste :). I tested the revised (debugged) script with two different versions "$header" variables in the Contact Form Captcha plugin: In the first case: (using "From" and no "Reply to") <code> $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header .= 'From: ' . $name . ''; </code> The result was: <strong>from</strong> Firstname Surnam <strong>reply-to</strong> Firstname Surnam <strong>to </strong> site_email@googlemail.com <strong>date</strong> Sun, Feb 14, 2010 at 9:52 PM <strong>subject</strong> Test Subject 21:51 <strong>mailed-by</strong> googlemail.com The good news here is that actual sender's name has been forwarded instead of "Root User" as reported in the earlier modified script. However, the truncated surname problem still remains. In the second case (using "Reply-To" and no "From"): <code> $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header .= 'Reply-To: ' .$name . '' . "\r\n"; </code> <strong>from</strong> Sitename <strong>reply-to</strong> Sitename , Firstname Surname <strong>to </strong> site_email@googlemail.com <strong>date</strong> Sun, Feb 14, 2010 at 9:54 PM <strong>subject</strong> Test Subject 21:55 <strong>mailed-by</strong> googlemail.com The situation here is pretty much the same as using the original version of your plugin except that two "reply-to" addresses (both the site's and sender's) have been forwarded. Evidently, there is some issue with using the "From:" directive in Contact Form Captcha plugin's "$header" variable in the "wp_mail" function. It works fine with "Reply-to" so I''ll just continue using it :). Huge thanks once again for all your superb support. You are a real star :)

shanDB at 2010-05-26 03:39:57

Got a couple of problems.. Windows based server - Plugin installs fine, but when activating it I get the following message: PHP Warning: Invalid argument supplied for foreach() in D:\CustomerData\webspaces\webspace_00101151\wwwroot\wp\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.php on line 86 If I press my browser back button, I see that the plugin has activated, despite that error message second problem: I just can't get the plug in to work! Infact, I've tried a bunch of other plugins that do the same thing - None of them work.. I'm using the gmail settings - Using my own personal gmail account, and also even tested with my own ISP details. Double checked and re-entered the information a billion times over the last day of trying - and every time getting an error to the effect of: "SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) ." Real odd, as I know my info is correct, and I refuse to believe that the problem lies at Googles end.. It's got to be a problem at my end, and for the life of me I can't figure out why (and going a little crazy in the process!) any help appreciated!

Callum at 2010-04-06 16:59:42

Interesting, I don't remember seeing an int(2) output before. Let me have a quick look and see what that means... Hmm. I've had a quick look and I can't see any reason why you'd get a response of int(2). It seems like you'll only get either a true or a false value back. Very strange. Can you try with your ISP's mail server? Will they accept mail without any need for SSL? That might provide a simpler first step to test. PS&gt; Thanks for the kind comments about my replies. I usually approve and reply to comments at the same time, so it might look like I'm a little faster to respond than I actually am! :-)

Eitan Caspi at 2010-05-21 15:48:11

Can you do this using the plugin? to align the formal "from" with the header?

JD at 2010-02-15 09:03:19

Ok, evidently you've misunderstood what I have posted. I have not modified your plugin, only the contact plugin: The original mail function was as follows: <code> $recipient = get_option('contact_captcha_email'); $mail_body = $_POST[cMsg]; //mail body $subject = "Message from your Blog"; $header = "From: ". $_POST[cName].""; mail($recipient, $subject, $mail_body, $header); </code> and I changed it to: <code> $name = $_POST[cName]; $email = $_POST[cEmail]; $subject = $_POST[cSubject]; $site_email = "site_emal@googlemail.com"; $recipient = $site_email; $mail_body = "<b>" . '[Message from ' . $name . ' (' . $email . ')' . ']' . "</b>" . "" . $_POST[cMsg]; $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header .= 'Reply-To: ' .$name . '' . "\r\n"; $send2site = wp_mail($recipient, $subject, $mail_body, $header) </code> What I have done here, is to: 1. Enable html parsing in the message body 2. Add a subject field to allow users to enter their own 3. Hard coded the recipient (site address) here instead of having it pulled from the plugin's dashboard settings 4. Ensured that the user's email and full name are included in the message body because of the surname trimming issue. 5. Replaced "From: ..." with "Reply-to: ..." in the header because of the issue mentioned in (2) as well. I also added an option (via a checkbox) to send a copy of the message to the recipient's own email address, using a second "wp_mail" function declaration. In the final analysis - both your original plugin and the second version you sent me, works fine as long as "Reply-to: ..." (and not "From: ...") is used in the "wp_mail" function's "header" parameter. Hope this clears things up and my apologies for any confusion.

Alexandre at 2010-09-17 11:22:27

Works fine in wp 3.0.1 with contactform 7 plugin. The input field smtp_pass should be type=password. thank you

Callum at 2010-03-17 12:57:43

Try going to wp-admin/options.php and manually changing it from mail to smtp. Does that work? Do you see any error message when you try to update the options? Do you have any other plugins that might affect it?

Callum at 2010-07-04 19:01:16

Did the same settings work in the past? I'm pretty confident there's no major regressions in the plugin. You can see older versions <a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/tags/" title="Older versions of the WP Mail SMTP WordPress plugin" rel="nofollow">here</a> if you want to check them. I'm sorry I can't be of more help. I believe the issue lies with PHP but I'm not sure where.

David at 2010-04-15 19:14:34

This is rather odd; the latest version was working just fine when I installed it the other day, and now with no changes at all, I'm getting the following error: The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: SMTP -&gt; NOTICE: EOF caught while checking if connectedSMTP -&gt; ERROR: AUTH not accepted from server:

Patrick at 2010-04-30 12:16:19

Test Message Sent The result was: bool(false) The full debugging output is shown below: [[ deleted by admin to save screen space ]] The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) It is not working.. how come?

JD at 2010-02-12 11:05:46

Thanks for the response Callum. For the sake of comparison, I tested the HGK SMTP plugin and while the truncated surname problem was still present, it did forward the sender's email address in the header. This is the result: <strong>From</strong> Sitename [test@googlemail.com] <strong>reply-to</strong> Firstname Surnam [test@o2.co.uk] <strong>to</strong> test@googlemail.com <strong>date</strong> Thu, Feb 11, 2010 at 4:19 PM <strong>subject</strong> Test Subject <strong>mailed-by</strong> googlemail.com This plugin inserts a "reply-to" field with the sender's address. Is it possible to make your plugin implement this feature? I would like to continue to use your plugin because it provides additional features such as a choice of mailer and debug messages. (Note that square brackets "[ ]" have been used to replace the "less than" and "greater than" signs which automatically get deleted here. Regards JD

Grant at 2012-02-16 21:55:07

I have your plugin installed and activated. We on our own server and I it pointed to our appropriate smtp server. When i attempt to send a test message, it tells me that the dubugger results bool (true) but at the bottom it tells me that it rejected the From address? Is this maybe because the From address is different than our hosting domain?

Marty at 2010-03-13 23:15:06

Good day, I'm getting the error message below, using my gmail account. Test Message Sent The result was: NULL The full debugging output is shown below: object(PHPMailer)#211 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(10) "iso-8859-1" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(14) "root@localhost" ["FromName"]=&gt; string(9) "Root User" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(0) "" ["Body"]=&gt; string(0) "" ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "mail" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; int(25) ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; NULL ["to"]=&gt; array(0) { } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(0) "" ["boundary"]=&gt; array(0) { } ["language"]=&gt; array(0) { } ["error_count"]=&gt; int(0) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: Message failed to send to marty.gunderson@solomonlandgroup.com from

Callum at 2010-05-28 10:35:13

Glad you found a solution. Thanks for sharing it here.

Callum at 2012-03-21 11:02:15

The plugin only modifies how mail is sent, and changes the from name / email if they are the default WordPress settings. So the functionality you describe is not supported. Also, some SMTP servers (gmail for example) forcibly change the from address to avoid being used for spamming.

Callum at 2010-06-09 15:38:11

You make an excellent point! A forum would be good, but I'm not sure I want to install and maintain a forum just for this plugin. Maybe I could use an iframe and <a href="http://www.tangler.com/" title="Tangler, hosted super-forums" target="_blank" rel="nofollow">Tangler</a> or something like that. I'd be grateful for any suggestions on how to make it easier without increasing the workload my end. I feel like I already make a significant effort to maintain the plugin and answer questions posted here. I feel like asking people to manually search the 5-10 pages of archives is a reasonable trade off for free software. :-) I prefer to have the password in plain text. I think it's better that plugin users understand it's stored and visible in plain text. Using your suggestion of type=password means the password wouldn't be on the screen but it would still be visible in the source code. I don't think that provides any security against someone with malicious intentions, but it might give a user a false sense of security if they think their password is somehow "protected". Short of some kind of encryption, I prefer to be clear that the password is in plain text and in plain sight.

bart at 2012-04-23 22:31:52

hope it reached you. If I come up with anything new I will let you know. I am search for straws...

Callum at 2010-02-11 20:52:39

I think Google automatically changes the sender's address to be the googlemail address. I think that's what's causing your issue.

JD at 2010-02-11 19:22:50

Oh I thought that I had left out the address but it appears that emails wrapped in "" are automatically deleted. This <strong>from Firstname Surnam</strong> should have been <strong>from Firstname Surnam "less than sign" test@googlemail.com "more than sign" </strong>. Please delete my second post.

Omarf at 2010-04-22 23:48:17

Callum, The plugin works fine, and the Settings&gt;Mail way is good. As for pushing an update soon, I don't think users will mind. Thanks for the quick reply AND for writing the plugin!

Eitan Caspi at 2010-05-12 12:58:38

I sent you .po and .mo files to test, since it looks like the plugin is not reading them. did you get it?

noyse at 2010-05-11 12:46:42

hi callum at first thank you very much for beeing that patient with me ;) I will try the tipps that you gave me in the next days. maybe i will take up on your offer to look at my server.

Callum at 2011-12-04 00:15:48

Not sure what to suggest, are you guys on the same host? If nothing has changed in WordPress or the plugin, I'd guess the issue lies elsewhere. Any plugin / theme updates at the time of the change?

Josh Schneider at 2010-10-23 16:56:38

Well, I tested again locally and didn't get the same results, and then rechecked my settings on the host, removed those definitions completely, and asked my client how it was working, and it appears to be working correctly (replies go to the form submitter). Don't know what I was doing differently before, but no problems now. Thanks.

Callum at 2010-06-03 19:30:48

This, sir, is a truly interesting bug report. Most of the issues reported here are one form of user error or another. This is something I have not seen before. :-) I'm really not sure what's causing this issue. I've just checked over the code, and I don't see anything that would cause erroneous line breaks to be output. Do you have all your other plugins disabled to test? I recommend disabling all plugins, then activate this one only, test, and see if that works. It could be that this plugin and another activated at the same time cause the issue. I'm stretching, but I'm not sure what else to suggest. Please report back and hopefully we can figure it out.

Robert at 2010-01-23 21:25:35

Callum- I am a little confused as to *where* you manage the settings for this plug-in. I uploaded the plug-in, but see no place for settings when it appears in my admin panel. Can you advise me? Thanks, Robert

Callum at 2010-01-23 21:35:33

Once you have activated the plugin, it creates a new menu under Settings called Email.

Adam J Nowak at 2010-09-07 11:05:59

Am using the smtp mail plugin and noticed this: Concerning the 'From Email' field, no matter what I put in this field the emails show up as from the contents of the 'Username field'. I did some experimenting and found that if I use an SMTP account that does not require encryption it works properly, but the accounts that have encryption it seems like the 'From Email' field is bypassed or ignored. This may be how it has to work but let me know.

Callum at 2010-05-22 20:45:29

I think it might be technically possible, but I'm not sure. I don't think it's something that is properly achieved through this plugin though. I've written a small custom modification for you which might work. I'll send you it now and hope it works for you. If it works and there is greater demand in the future, I may add it as an option.

Josh Schneider at 2010-10-21 05:18:00

One more quick question, which I can't find addressed in the history. In the config settings, are WPMS_MAIL_FROM and WPMS_MAIL_FROM_NAME required, and if not, what should they be set to so as not to override a reply-to email address in a contact form (in this case, I'm trying Fast Secure Contact Form, which is quite nice). Thanks.

Josh Schneider at 2010-10-21 05:45:07

Sorry, I think I answered my own question. I couldn't see the tips once I put all settings in a config file, but now I'm seeing them again as comments in the plugin code: "You can specify the email address that emails should be sent from. If you leave this blank, the admin email will be used," and "You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress." I guess there's no other way to set it (like undefined), and in this case, the Fast Secure Contact Form won't override those settings, and even though it populates the "Reply-To" field correctly, hitting reply automatically directs to what's in the "From" field, which is the site owner/admin.

Radu at 2010-06-03 05:49:09

The plugin works fine in my blog. But when I try to connect with WindowsLive Writer to post an article, I get this following error (who does not appear when I disable ONLY your plugin) - it seems that it adds few characters (few pairs of CRLF as I see with Fiddler): WindowsLive.Writer.CoreServices.XmlRpcClientInvalidResponseException: Invalid response document returned from XmlRpc server ---&gt; System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 173, position 13. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg) at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32&amp; colonPos) at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) at System.Xml.XmlTextReaderImpl.ParseEndElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText) --- End of inner exception stack trace --- at WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText) at WindowsLive.Writer.CoreServices.XmlRpcClient.CallMethod(String methodName, XmlRpcValue[] parameters) [Radu: I've deleted the res because it was too long]

Callum at 2011-03-04 11:18:12

I don't think there's any way the plugin could cause emails to be sent twice. The code only changes how emails are sent, it doesn't control the number or frequency or anything like that. You could try re-uploading WP 3.1 by FTP or otherwise. I personally don't use the auto-upgrade, I've not yet come to trust it to work reliably enough.

ray at 2010-10-10 07:09:00

Looks like a great plug-in, but how do you actually "invoke" it? With Some plugins you'd create a new Page, then add a trigger snippet like: <!-- contact form--> Is that possible here? Would certainly love to use an SMTP-based contact form and hopefully yours is the one.

Callum at 2011-02-13 13:52:59

Great, glad you got it working. :-)

Callum at 2010-05-20 10:10:33

My mistake, the file needs to be called "wp_mail_smtp-he_IL.po" in the "langs" directory. Does that work for you?

DKnight at 2010-11-10 23:34:41

Callum, I've encountered the same problem. Plugin works fine on one blog that is running older version of WP. Another blog that has been updated to 3.0.1, I used the same exact config but the test messages fail (timeout). It's configured to relay through Gmail. Please advise.

Callum at 2010-03-05 18:29:52

The issue lies in your PHP settings. Honestly, I don't really understand what you need to modify. But the change lies somewhere in php.ini and the modules you have installed and configured, that's as much as I know.

Callum at 2010-04-20 14:19:34

You can send test emails to Gmail addresses via smtp.gmail.com, is that correct? But you're unable to send emails to any address that is not @gmail.com, is that also correct? Do you have a mail server that does not require SSL that you can test with? I believe Gmail require you to use SSL. Your server's PHP configuration might be preventing or messing with the SSL option.

Ron at 2010-04-20 14:40:42

No, I can send test mails if i change to PHP mail() instead of smtp, but the issue there is that it only let me send test e-mails to gmail e-mail addresses, not sending e-mails to hotmail or yahoo. I tried setting up using yahoo e-mail and hotmail e-mail with smtp, but that didn't work either.

Dan at 2011-05-23 20:07:50

Thanks for the reply Callum. I'm sorry I was using the wrong terminology. I got the mail() mechanism to work on my server. The mail() was working but the server couldn't find the correct sendmail directory.

Callum at 2011-05-23 20:08:53

I also wrote a plugin called <a href="http://wordpress.org/extend/plugins/wp-mail-log/" target="_blank" title="WP Mail Log plugin on WordPress.org" rel="nofollow">WP Mail Log</a>. It logs every call to the wp_mail() function and can be useful for debugging these kinds of issues. I published the code on WordPress.org, you might find it useful.

Callum at 2010-04-20 14:50:54

Please be as specific as possible in answering the specific questions I've asked. I'm not familiar with Hotmail or Yahoo's SMTP service. Have you tested with an SMTP host that does not require SSL? Using PHP's mail() function you're able to only email gmail addresses, is that correct? This sounds very odd. If the server is accepting mail I can't see why it would be configured to only relay mail for one domain. Can you ask your host why mail() only works for gmail addresses? Ask your host to check the PHP settings around fopen(). If sending mail with SSL disabled gives the same error, I'd guess the issue lies somewhere around the PHP settings for fopen().

Callum at 2010-04-20 14:53:05

Please paste your whole wp-config.php file (I recommend you blank out any usernames, passwords and other sensitive data). I'll look at the whole file and see if I can make any suggestions.

Callum at 2010-04-20 13:28:00

I think other people have reported the plugin working with Contact Form 7. Try adding <code>var_dump($headers);</code> on the line above. That will output the value of $headers to the screen. This might shed some light on why that value is causing issues. If you can post back the output from the var_dump() I'll look it over and see if I have any further suggestions.

Ron at 2010-04-20 13:51:12

Thank you for the reply. I spoke with my host and they swear that the port is open. I am able to send through php(mail with the same settings as smtp, but it wont send through smtp (getting that 110 error). However, it wont send test e-mails to anything but gmail e-mails (well I know it wont send to hotmail and yahoo). I have tried to smtp with other e-mail providers (hotmail, yahoo, etc...) and they all fail.

Callum at 2010-04-09 11:09:32

Yeah, there will be an error in a log somewhere, it's just a matter of finding where. :-) GoDaddy can probably help point you at the PHP error log. Best of luck with it.

Ovidiu at 2010-04-20 14:41:26

trying to get the plugin working with wpmu. followed the instructions, but the plugin settings menu is still showing up. here are the variables I have inserted into my wp-config.php: //inserted to use gmails smtp servers for sending ALL emails in conjunction with the wp-mail-smtp plugin define('WPMS_ON', true); define('WPMS_MAIL_FROM', 'suport@zice.ro'); define('WPMS_MAIL_FROM_NAME', 'zice.ro'); define('WPMS_MAILER', 'smtp'); // Possible values 'smtp', 'mail', or 'sendmail' define('WPMS_SMTP_HOST', 'smtp.gmail.com'); // The SMTP mail host define('WPMS_SMTP_PORT', 465); // The SMTP server port number define('WPMS_SSL', 'ssl'); // Possible values '', 'ssl', 'tls' - note TLS is not STARTTLS define('WPMS_SMTP_AUTH', true); // True turns on SMTP authentication, false turns it off define('WPMS_SMTP_USER', 'mygmailaddress'); // SMTP authentication username, only used if WPMS_SMTP_AUTH is true define('WPMS_SMTP_PASS', 'password'); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true don't know what I could be missing here...

Callum at 2010-10-22 17:45:21

If you disable WP Mail SMTP does the contact form work as expected? It could be an issue with the contact form plugin. Are you familiar with PHP? You could try dumping the contents of the wp_mail() call to see what's going on before WP Mail SMTP starts modifying things.

Sarah Smith at 2010-09-09 12:45:56

Which parameter is the recipient email? A test email is being sent from within the script, so I know the script works but when I use the script in my website i do not receive an email. Until this point I have assumed the recipient email was the last 2 parameters (email and password) thanks

Keith Walter at 2010-09-09 10:56:37

Callum, First off thanks for the plugin, works great! A suggestion just from my experience enabling the wpms version. In the docs you may want to mention that the constants need to be defined above the line that says /* That's all, stop editing! Happy blogging. */ If it's copied after that, it doesn't work and people may have the tendency to just copy and paste at the bottom. I was also curious why you went with defining the constants in wp-config and having no admin page at all, rather than just adding the options under Super Admin? Seems like that may be easier for the end user. Thanks again for a great plugin and hard work.

Vanessa at 2010-02-19 09:44:40

Hi Callum, I get the "Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?" when trying to send the test email. The thing is that the pluging was working, all mail was working until i moved the website to the root (it used to be in a separate directory). Do you have any idea what could ha happend during the moved? I have added the complete error at the end of this message. I replace the email and password values. Thank you! Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#4569 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(20) "webmaster@efv.org.ve" ["FromName"]=&gt; string(11) "Website EFV" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(44) "WP Mail SMTP: Test mail to vcolina@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(20) "email" ["Password"]=&gt; string(6) "password" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#4570 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(247874152) ["errstr"]=&gt; string(96) "Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(17) "vcolina@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_f571e6195a35fd8655ddaa618781548a" [2]=&gt; string(35) "b2_f571e6195a35fd8655ddaa618781548a" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (247874152)

johan at 2010-04-23 08:38:26

When i try to go to settings i get this message: "You do not have sufficient permissions to access this page." all help apreciated thank you

Callum at 2010-02-19 10:31:30

Moving the site around on the server shouldn't cause any issues. Just to be sure, try moving it back and see if that works. Otherwise, did your PHP settings get changed in the process? Did you change any of the SMTP settings? I'm at a loss as to what else to suggest.

Callum at 2010-04-22 14:00:35

Wow, I really, really screwed up adding that Settings link! Apologies, the link doesn't work. However, if you go to the menu under "Settings" you should see "Email", that is the correct link. I'll think over whether I want to push out a new version so quickly after to fix this bug. Again, I'm really sorry for all the recent hassles. If anyone would like to take over the maintenance of the plugin I'd be happy to hand it over.

Callum at 2010-04-22 13:37:27

Just to confirm, mail is now working as you would like it to. Is that correct? Did you do anything to fix the error? Would you be willing to share your steps here for anyone else with the same issue?

Callum at 2010-04-30 19:03:13

Read <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" rel="nofollow">this</a>. This question has been asked and answered many times, please do your own research before wasting my time asking for information that is already available.

Callum at 2010-04-30 19:05:13

If you deactivate this plugin, does the correct sender address appear on your email? The modification of sender information is very carefully written to only make changes when the from name and address are the WordPress defaults.

Bart at 2012-04-22 21:39:25

ok then here it is http://www.pastie.org/3833711 ;-)

Strategerizer at 2010-11-11 18:10:34

I understand your point. It is just that in practice things are not necessarily black and white and the person you give access to the blog is an angel or evil doer. It may actually help not being blatantly exposed with a plain text password on a readily accessible UI page. I understand that it will help little or not at all with a real evil doer but may help steer away others. Just because a protection is not 100% fool-proof I think does not mean that its weak points need to be advertised. I think users in general are habituated to see password fields not explicit. Making it so just triggers red flags. Maybe the best of both worlds is to not display the pwd as explicit text but to have it in the Readme instructions explicit to the user the security issue you detailed above; so at least they understand that. Also, my point remains that I may trust someone enough to give them temporary access to my blog to fix something I do not want to have them stumble upon my secure email password. Assuming they did not implant malicious code, once I delete their account, they are locked out of the blog, but they can still have access to the email account. But it is your prerogative - it is your plugin after all, and a really good one to (well, at least outside the pwd issue ;-)

Jen at 2011-02-03 08:47:54

I'm having issues as well... I tried doing what your site says to fix it, but putting the wp_ in front of mail did nothing and I can't find the php.ini/have no idea what that is for the other thing.... Here's the full message: Test Message Sent The result was: bool(false) The full debugging output is shown below: object(phpmailer)(45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(23) "EMAILIWANTITSENTFROM" ["FromName"]=&gt; string(4) "NAMEITSFROM" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(44) "WP Mail SMTP: Test mail to EMAILITISSENDINGTO" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(23) "EMAILITISBEINGSENTFROM" ["Password"]=&gt; string(9) "PASSWORDFOREMAIL" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; &amp;object(smtp)(7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(13) ["errstr"]=&gt; string(17) "Permission denied" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(17) "EMAILITISBEINGSENTTO" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_bbc6ccfdf5f67ede242ad55ed9bb6099" [2]=&gt; string(35) "b2_bbc6ccfdf5f67ede242ad55ed9bb6099" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Permission denied (13)

Gregory at 2010-11-14 20:43:48

Sure, we can try some debugging. Yes, we receive emails from the contact form properly addressed by the email of the form submitter when I disable WP Mail SMTP/Configure SMTP. I require an SMTP plugin due to another unrelated quirk involving Google Apps - it will automatically mark form submissions as spam that are sent via Sendmail from my web server. Not sure why, but the hypothesis is that Google's antispam dislikes a mismatch between the originating domain (i.e. the web host's server) and the originating email's indicated domain (i.e. a Google Apps managed email account)

Callum at 2010-05-12 18:37:28

I think they need to be named he_IL.po in a subdirectory called "langs" within the plugin directory. Please let me know if that works for you.

Alex Dickson at 2010-06-28 07:47:00

Sorry to keep cluttering up the page but I still haven't managed to fix it. I email GoDaddy and they replied saying that I needed to use relay-hosting.secureserver.net as the SMTP host and use port 25. This now gives me this error: The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: (0) Any ideas? I shall email them again and see what they say. Thanks for your help.

Alex Dickson at 2010-06-28 10:08:18

For anyone who has this problem in the future, according to their phone support they do not allow gmail accounts. Therefore I had to create my own email (you get some free with the hosting) and use that. The setting I used were as follows: smtp host: relay-hosting.secureserver.net no port no encryption no smtp auth Hope this helps. Alex

Carter Baker at 2010-03-28 20:34:03

P.S. (I'm using an Aol email after the fails with gmail.)

Callum at 2010-10-16 19:52:17

This has been discussed many times before, please read the history before asking questions. Encryption is not a viable option.

Vince at 2010-07-13 11:38:08

Callum, Thank you for your terrific plugin! I am having a problem, similar to Noyse above but slightly different. I have configured your plug into use gmails smtp server with: SSL encryption and authentication. When an email is sent, it over rides the submitters email address from the form field and uses my gmail account username instead. Example: Imagine these are my settings: From Email: donotreply@gmail.com You can specify the email address that emails should be sent from. If you leave this blank, the admin email will be used. From Name: Jimmy Two-Times You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress. Mailer Send all WordPress emails via SMTP. SMTP Options These options only apply if you have chosen to send mail by SMTP above. SMTP Host: smtp.gmail.com SMTP Port: 465 Encryption: Use SSL encryption. Authentication: Yes: Use SMTP authentication. Username: donotreply@gmail.com Password: xxxxxxx So if someone named Jim using his email address "jim@foobar.com" sent me a message, and I get the message and hit reply, I expect to see Jim "jim@foobar.com" in the To portion of my email. Instead I see Jim "donotreply@gmail.com" It appears that sending the email through gmails settings is over-writing the users [your-email] setting. Can you help?

Strategerizer at 2010-11-11 17:02:29

Giving someone access to the blog though should not give them access to email; I may be OK for someone to access my blog settings but not access my email. Also, I can easily give someone temporary access to the blog and delete their account but my email may remain compromised until I change password there too. For example, I may need to give superadmin access to someone else (maybe tech support for a plugin I use or someone else helping with some tech stuff) and create a simple account for them with an easy username/pwd. After they are done, I just delete that user account. During the time they have access to the blog account I would not want to have the email pwd exposed, as that is my "secure" one that I may use for some other accounts too, or be similar to other passwords that I use elsewhere. It would be a burden (and may forget) to change that password too each time I give someone access to the blog. So my view is that exposing a password to others is always a bad idea, even for the non-paranoid. Plain text visibility of passwords to others can show the pattern used for passwords the user creates.

hf at 2010-10-12 18:48:26

I am getting this when I send a test: string(36) "Could not instantiate mail function."

Callum at 2011-03-27 21:43:44

The only thing WP Mail SMTP leaves behind is your settings in wp_options. However, they should be ignored by all other plugins. I just double checked Contact Form 7 and it doesn't use any of the same option names. I'm not sure what's causing the issues with Contact Form 7 now.

Bri at 2011-03-27 22:15:24

To add to the mystery, I recently received an inbox full of test messages all at once from WP-Mail-SMTP and Contact Form 7 that I sent yesterday. I received them nearly 24 hours after I sent them. The strange thing is that I have always gotten errors whenever I sent them (WP-Mail-SMTP always says "Test Message Sent / The result was: / bool(false)" at the top. About half of the message I received were from Mail Delivery Subsystem with the subject "Warning: could not send message for past 4 hours." The rest were the actual test messages from WP-Mail-SMTP and Contact Form 7 that I sent yesterday. Why would I get errors when I send them but they still get sent the next day?

Igor at 2010-10-25 06:37:21

Hi Callum, thanks for your plugin, it works great. I just want to add a suggestion. Please, make password field type="password" opposite of type="text" as is now. It's easy change and nice security touch. Best, Igor

noyse at 2010-05-11 04:49:13

Hi Okay now i'd read the preferences again ;) &gt;You can specify the email address that emails should be sent from. If you leave this blank, the admin email will be used.You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress.&lt; work as it should, and thats the problem for me :) I use contact form 7 in which people can provide their email address. without your plugin this address will be used as sender (thats what i want) ... with your plugin this sender will be overwrite either by the address that is written inside the plugins configuration or if the field is leave blank with the default admin address. So if i recieve an email i cant answer directly to the sender. maybe my problem is discriped more exact

Callum at 2010-04-08 15:35:03

I've had reports of gmail working well. I don't use gmail so I can't say from personal experience. Any SMTP mail server that will relay mail should work. I'm not sure what advice to offer in terms of choosing a mail server, it's a bit beyond the scope of support I want to provide with the plugin.

TheNightOwl at 2010-04-23 23:21:55

Hi, Callum Thanks very much for getting back to me. I've <i>finally</i> had time to go back to that site and tinker around again. Here's the weirdness... It's working again, just fine! I don't get WP sometimes. Although, in fairness, it might not be WP's fault. The reason I ended up with your plugin in the first place is that my blog just suddenly stopped sending comment notifications as well as the "rewards" that I offer for commenting -- using a commercial plugin called "CommentBait" (great plugin; hate the name!). It just stopped. Suddenly. Even though I hadn't touched the site in weeks. So I was looking into a solution and your plugin seemed to be that solution. However, my blog has just as suddenly started sending comment notifications and rewards again. And, once again, without my having touched anything. I wonder if it's an issue at my host. Maybe there was an update to PHP or the PHPmailer configuration on that server or something. Who knows! Anyway, once again, your plugin seems like a good workaround and I appreciate both your creating it and offering support on it. Take care, mate. All the best, <b>TheNightOwl</b>

Jeff at 2011-12-26 03:24:42

I appreciate the feedback. I've opened a support ticket with bluehost and will let you know what I find out. Merry Christmas to you as well. Thanks, Jeff

Nigel Freeney at 2011-03-24 11:04:12

Hi Callum, I've just installed and checked it on another WP installation and it worked as expected. I've gone back to the original site and created a new user to test the new password process and this has now worked OK! No idea what happened...

Josh Schneider at 2010-10-22 15:19:23

Well, if I either set those variables to empty strings or comment them out altogether (in the config settings, which I've put in wp-config), the contact form seems to default From to the WP admin email address - the one defined in general WP settings. There could be confounding factors, like problems with the contact form plugin or even the settings I had defined for WP-Mail-SMTP on its settings page before I moved all configurations to their current location (making the settings page disappear). Bottom line, I can't get this particular contact form to populate the From field with the address of the form submitter - it's always replaced by the admin email. Reply-To is correctly populated by the address of the form submitter. But that makes no difference in gmail, at least, because it automatically replies to the From address, at least when I test. If there's anything you recommend I try to sleuth this source of this behavior, let me know and I'll test it out. Thanks.

Ivan Ong at 2010-02-22 23:47:57

Hi, I have tried your plugin, and couldn't get the mail from address to work. Illustration: Under the settings, I have entered the "From Email" as fakeemail@domain.com The test email did manage to get sent successfully, but the from address is still username@domain.com How can I get the From Email feature to work? I am using WPMU.

Robert at 2010-04-09 10:51:06

Greetings! I installed the plugin, the test email fired off great -- the only problem is, when trying to register as a new user, hitting the REGISTER button appears to simply refresh to a blank page (wp-login.php?action=register) , and no email is sent. That new user's name does actually appear in the admin's user list, though. I cannot seem to find anyone else in any forum who is having a similar problem, which makes me worry a little more :) .. Not sure if this is relevant, but one thing of note is that the test email wouldn't work unless I replaced the host from "smtp.secureserver.net" to "relay-hosting.secureserver.net" and turned off the authentication. (using GoDaddy, found that suggestion on a forum) I'm getting no errors upon registration, though, so I'm stumped how to further diagnose.. Anything tips you could offer would be of great help... thanks! Enjoy your travels! rM

Bira at 2010-02-23 10:58:15

Well I edited this in the php file, but if you ever release an upgrade, I honestly think you should change the input type to 'password' rather than text. Anyways, great plug-in. Thank you.

Callum at 2010-02-23 13:56:00

This has already been <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-1/#comment-33841" rel="nofollow">asked and answered</a>.

Callum at 2011-06-09 12:12:36

The only option in the plugin is to modify the default sender from the default of "WordPress". If the call to wp_mail() sets a custom sender, then this doesn't apply anyway. I'd guess you need to either change the way Sendblaster picks up emails from your inbox, or change the settings in the contact form. Something like mailchimp would handle all of this for you and give you an HTML form to drop in.

Kellie McCann at 2010-04-28 21:57:14

I downloaded as I am trying to make Subscribe 2 work, and someone said that this needed to be installed. this is what I got: Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#65 (45) { [[ deleted by admin to save screen space ]] } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)

ovidiu at 2010-04-25 06:21:08

one last question: you guys are sure it needs to be activated normally, not sitewide?

Callum at 2010-06-09 14:07:54

This has been discussed before, please check back through the history. It's not possible to encrypt the password, it needs to be passed in plain text to the mailer.

Paul Geisler at 2010-06-09 14:37:00

Thanks for the reply! :) I apologize but 409 Comments... :D. How about a forum? I thought about this problem too, but what if the password would be saved in the db. It could still be the plain text but there would be no more need to place it right at the face? Aw and besides, would this made any problems? &lt;input name=&quot;smtp_pass&quot; type=&quot;password&quot; ...

Mridul at 2010-02-09 03:19:14

Hi Callum, The plugin is Great. I am trying to use it on Wp MU. Now i am putting my username [support@openkpi.org] and password [smtp is google]. this is what getting in the output. one this is wierd, when i am putting the username or from support@openkpi.org, it is reflecting from "nopreply@www.openkpi.org". I am getting hol now after trying it for few days. Can u help me by giving me some pointers. i am using hostmonster as hosting. object(PHPMailer)#366 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(23) "noreply@www.openkpi.org" ["FromName"]=&gt; string(11) "Performance" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(49) "WP Mail SMTP: Test mail to mredul.singh@gmail.com" array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220-host313.hostmonster.com ESMTP Exim 4.69 #1 Tue, 09 Feb 2010 01:12:43 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -&gt; FROM SERVER: 250-host313.hostmonster.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP SMTP -&gt; ERROR: Password not accepted from server: 535 Incorrect authentication data SMTP -&gt; FROM SERVER: 250 Reset OK

Dave at 2010-06-10 10:48:38

Firstly, thank you for the WP-Mail-SMTP plugin - it should be a great help. I am sending the SMTP through a different server than what WP is installed (host that has WP doesn't allow a large amount of emails to be sent out). The emails seem to be sent out very slow when using SMTP. Sending to 5,000 subscribers takes about 2 hours. The hosting company of the server that I am using for SMTP said the that the logs show that the WP server is sending the email requests out about 3 minutes apart. Are there any settings within WP-Mail-SMTP that breaks up the emails as they go out?

Ivan Ong at 2010-02-25 00:12:43

Yes, I am using google. I've found out that Google will send using the default send-from address. I've changed the settings from the Google side already. You might want to note this down in your FAQ or something. Good Plugin.

Eitan at 2010-05-11 13:24:42

Well, you need to create a .pot file (for gettext) as a translation templae, and then folks like me can easly make translation files out of it into .po (source/plain text interface translation) and .mo (binary interface translation) files. See here: http://codex.wordpress.org/Translating_WordPress http://blog-en.icanlocalize.com/installing-wordpress-for-multiple-language-blogs/how-to-localize-wordpress-themes-and-plugins-with-gettext/

Collin at 2010-06-06 09:01:24

Callum, Thanks for bringing us the brilliant plugin! But one thing I don't understand with implementation of the plugin is: why do you override the "From" field for the email with the WordPress administrator 's email, instead of just using the "From Email" user specified in the plugin's setting? This will cause the following error which has taken me hours to find out the root cause: SMTP -&gt; ERROR: MAIL not accepted from server: 550 5.7.1 Client does not have permissions to send as this sender Hope it updated in the next version. Thanks!

Sharky at 2010-08-05 08:38:22

Hi there, I'm having some problems with the plugin. I'm using WP Multisite 3. It works fine on the top level (main site) but as soon as I add another site the Email function is added to the Settings menu - but all the settings are blank. I added the settings to wp-config.php in the root as well - but this doesn't change anything (and the menu remains visible as well) All the sites that are created can not send mail (unless I edit the settings manually) Any ideas?

shanDB at 2010-05-27 07:36:35

I've finally found a solution!!!!! Tested with Contact Forms 7!! The whole problem was caused by the email address I had given as the "From Email" and "Send To Email" In my instance I had to make sure that I used an email address from the same domain as the actual website itself, with the hosting company's SMTP details (pretty obvious huh!, but trust me, this had me stumped for almost 3 days!) Using my Gmail smtp setting still doesn't work, and no other email address I used would either. My sites hosting company even tried to tell me that I needed to enter my ISP smtp details (which didn't make sense to me, and didn't work anyway) But an email address from the same domain as the website does work!! And that's all I care about! Now I can get some sleep.. or get drunk!

Rick Ross at 2010-07-26 12:03:11

Hi Callum, and thanks for your excellent WP plugin! I installed 0.8.6 with WP 3.0, set the "From Email" and "From Name" and the other various fields for my SMTP server. The emails work, but the "From Email" seems to be ignored, using the default admin email instead. I was hoping to have emails from this WP site use a simple "noreply@mydomain.com" email address instead of the admin email address. Oddly, the "From Name" I set in WP Mail SMTP is being picked up and used, but not the "From Email" address. Any ideas? Thanks, Rick

Callum at 2010-07-26 12:10:30

Hmm, I'm puzzled. I've run some tests and it works on my site WP 3.0 and 0.8.6. I'll send you a slightly modified version now with more debugging output, can you send me back the results?

Callum at 2010-10-22 12:55:56

If the from name or email have been changed from the WordPress default, the plugin should leave them unchanged. That means that contact forms and so on which set the from to the user's name and email, should work fine. Only emails from WordPress itself should be changed. Are you seeing different behaviour?

Callum at 2012-04-23 15:44:00

Oh yes, the login info would need to be sent by email, not posted publicly. You can reply to the comment notification email and it will reach me.

applequan at 2010-11-22 09:27:12

Hello,sir I just run into a big problem when I use WP Mail SMTP in wordpres 3.01! My website is Godaddy free host——www.dingkee.com, When I configed the plugin,and test it says as blow and occurs error without sending any e-mail,While the same configration works quite well in my localhost! Please help me Thank you very much,!!!! ************************************************************************************** “Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#9 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(23) "applequan2008@gmail.com" ["FromName"]=&gt; string(9) "邓荃文" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; ” ··············· “ ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111) ”

Callum at 2010-05-26 17:36:18

I deleted your debug comment. I'm assuming this comment and your other one are about the same issue, so I'll only reply here. Honestly, I'm really not sure PHP settings are required. I think the issue lies around fopen() settings. If the host allows outgoing fopen() connections to remote urls, I think the plugin works. I haven't personally experienced the "cannot connect to server" issue, so I haven't personally resolved it. I believe other people have found and fixed the issue, but I'm not sure how they did that. If you can get it to work, I'd be grateful if you would post the necessary changes to php.ini back here. :-) Sorry I can't be of more help at this time.

Callum at 2010-05-26 17:38:30

I think the issue is that WordPress wants to "fake" the sender, so the email appears to come from the person filling in the form. It seems like your host disallows that when the "from" email address is a google address. You could use a different SMTP server. I haven't heard of this issue with Google's outgoing mail service, or with any other hosts. I'd guess any other SMTP server would work fine. You could also ask your host if they can disable this on your account. If you explain the full context of what you're doing they might be understanding.

Josh Schneider at 2010-10-16 19:33:26

Is there any way (think i might be able to figure it out, but thought I'd ask first) to modify the plugin to hide the authentication password in admin settings? I'm setting up for a customer, and want him to be able to put in his username and password, but don't want it to be visible to me in the settings screen. Optimal would be a way to have it input and recorded in the database with encryption and then revert the inputs to be blank until someone needs to change them, and have a show/hide option on the password. Thanks much for the plugin.

eduardo at 2010-08-30 07:21:11

Hi, I'm newby with Wordpress also with Contact 7 and WP_mail. I'm using the up to date version of each one. But after 3 tries of install and reinstall contact 7 and Wp_mail it doesn't work !!!! The configuration page at my wordpress admistration page doesn't came alive. So I can't do anything to adjust SMTP and so on that I need to do. I saw taht I must to change from mail() to wp_mail() elsewhere. But, if it's the case here, please tell me where??? Please Help!!!!!!!!!!!!!!! Thanks in advance, Eduardo

Pippin Williamson at 2011-01-06 05:48:54

Yeah, no luck no far. Any ideas?

Kim Allred at 2010-11-16 21:47:31

I am having a hard time. I have network enabled this plugin and it works on the top level site, but it will not send out the system generated e-mails from any of the subsites. So for example, I have to register a user and a new site on the top level for an e-mail to go out. But Administrators of their own sites, when they add users to it, it doesn't send out the e-mails. I hope that makes sense. Any help would be greatly appreciated!

Callum at 2011-05-31 23:03:29

I think GoDaddy might block outgoing SMTP connections. Have you tried using their outging SMTP relay? The details are buried somewhere in this comment history I think it's relay-hosting.secureserver.net with no SMTP authentication. Does that work for you? Emails might be flagged as spam from that server though, as I'm guessing it gets a lot of traffic.

Callum at 2010-12-07 15:04:08

Reading the SMTP log it looks like this is the key line: <blockquote>SMTP -&gt; ERROR: RCPT not accepted from server: 501 Syntax error. Syntax:{RCPT TO: [SIZE=msgSize]}</blockquote> Honestly, the code works. WordPress is extremely well tested, PHPMailer is also very well tested, and this plugin is incredibly simple, it changes a couple of settings in PHPMailer, not much else. I'd recommend trying another SMTP server. My guess is that it will work. Your issue could be caused by a charset error, that might cause the issue, but I'm not sure. I'd say try a different server if you can (many people report Gmail works, but it has it's draw backs). If that works, try contacting the mail server admin. They might be able to figure out more from the SMTP server logs.

Callum at 2010-11-22 18:13:53

This is the most common error message. The plugin is working fine. Read the <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" rel="nofollow">plugin page</a> if you want information about that error message.

Lawrence Fox at 2011-10-03 22:46:17

If I leave off the "from" iin the functions.php gets mailed. If I try to insert one in code, no email is sent--that's what's so confusing. I'll try adding an email address in the "from" (e.g., something with an "@": sign and I'll see what happens. Thanks Lawrence

Asi at 2010-12-18 17:58:53

Problem is resolved now. I learnt that the default setting for [From] field is "noreply@myurl". Somehow WP Mail SMTP plugin was not recofigurring this setting to what I was giving it in the 'From Email' column of the plugin's options page. What affects its ability after activaiton of BuddyPress is still a question. Another plugin Configure SMTP has helped setting it properly. But I still like WP Mail SMTP more for its debugging output and some other options. Hope Callum would help figuring out what files need to be tuned to make its settings unaffected by BP or other plugins.

Jim K. at 2012-04-23 17:38:08

Ah, thank you. I've been having a problem with my outgoing emails being dissappeared by the Cloudmark spam filter, with no feedback, whenever I try to send an email containing an url, such as a registration email. I was hoping to at least get some feedback on this, but there's no url in the test email, so I guess that's out. On the plus side, I've realized that I can use my gmail account to send mail with this plugin, hopefully that will work out better. I was wondering though, is there any way to hack it so that it sends me a bcc, at least for registration emails? I'd really hate to have one of those get lost...

Jim K. at 2012-04-23 17:00:39

Hello, in all the help requests in this thread, and in other places referencing this plugin, I keep seeing the reference to "SMTP debugging output". Please tell me, where can I find this? Is it in a log file?

Callum at 2012-04-23 17:25:00

There's a test feature at the bottom of the plugin's admin page, that will generate debugging output.

Callum at 2010-10-16 15:57:26

This is a known error. I'm not sure what causes it, I haven't looked into it yet. You can safely ignore it.

Callum at 2010-10-16 15:58:04

Where do you see that error message? After you perform what action? Can you talk me through the steps you follow to produce that error?

Greg Daniels at 2011-01-06 05:25:55

Thanks for the plugin (and all the support) Is there any way to allow the use of multiple stmp accounts?

Ian at 2011-08-17 00:25:00

Hi Callum, I am having difficulty with your plugin. I have installed it but cannot activate it or delete it. If I click on any of the options on the plugin page it just takes me to my homepage of my website (frontend). Any ideas? Cheers Ian

Callum at 2012-07-02 13:28:00

What does the link that Google provide tell you?

aaron at 2010-08-28 18:02:41

Hi, Great plug in,my only comment is would it be possible to write the code to hash out the email smtp password once you click update settings. I don't really like the idea of having it in plain text for any admin who logs on to see. would it be possible to write the password to the config file and then clear the box or fill it with ******* so it is no longer readable? Apart from that a great plug in....

Callum at 2010-11-11 17:37:10

Please use the reply button underneath a comment when responding to it. This keeps the messages threaded. In my opinion, you're missing the point. If you give somebody a "simple account" with administrator privileges, you are giving them <strong>total and complete access</strong> to your blog. They could implant a hidden plugin, insert a hidden code block, or otherwise plant any kind of trojan to give them ongoing access. They could completely destroy your blog, deleting everything on the database, or otherwise. If you give somebody admin access to your blog, you better trust them with the whole thing. If they have that access, then they have your email password. Whether you want them to or not, they can get it. The fundamental point is this. The password needs to be in plain text when we start the PHPMailer class. Therefore, however we store it, it must be resolved to plain text by the code. That means, anyone with admin access to your blog can get it. Full stop. There is no way to protect against it. So putting it behind a type=password box doesn't change anything. It only fools the blog owner into thinking there is security where there is not. Bottom line, if you don't trust somebody, don't give them admin access to your blog.

Marcelo cannobbio at 2010-09-03 03:47:36

It's back now, just downloaded a copy. Thank you! Yesterday there was only a red line instead of the download button, no screenshot, no faq, no changelog... I suppose you are right, automattic is working on wordpress.org. BTW, rating is back on...so 5 stars to your work. Thank you!

Callum at 2010-12-10 15:44:51

SMTP can be configured in any number of situations. The plugin will work fine in almost any hosting scenario. You'll need to configure your firewalls and SMTP server yourself, that's beyond the scope of plugin support.

Callum at 2010-12-10 15:45:14

This has been discussed several times before. It's a WordPress bug, you can safely ignore it.

Callum at 2010-09-02 16:10:02

Sorry for the slow response. If you want it installed across your whole site, put it in mu-plugins and set the constants in wp-config.php.

Andreas at 2011-04-06 10:53:50

Ok, As i thought it works perfect with gmail... And my host wont help me, they just tells me that webmail works fine. thanks for fast answer anyway! Regards Andreas

Strategerizer at 2010-11-11 19:02:28

I ought to say, at the very least, having the password explicit has definitely prompt me to evaluate and understand some of those security implications; thanks for your patience. I will read up on how to set up the constants and implement it that way; will let you know if I come across challenges. Thanks!

Callum at 2010-11-11 19:12:27

Great, just let me know if you need any help.

Callum at 2010-11-11 18:45:22

Part of my point is that you're mistaken. No, when you delete their account, you do not restrict their access. It's trivial for me to write a short piece of code that I could insert anywhere into your blog PHP. Then, whenever I want, I can get admin access to your blog. It's very, very easy. So whenever you give somebody access, you need to trust them completely. It's not that you can lock them out later, if they slipped in a trojan, you have to find it. Unless you fully audit your site for changes before and after their access, you'll never find it. If you want better security, read the section that explains how to set up the plugin info in wp-config.php as constants. That will hide your password in the same place as the database password. If you need help to do that, I can walk you through it. But I won't pretend-hide the password. I want people to understand the risks by seeing it in plain text. If people understand the password is readily available, I believe they'll be better able to make security decisions.

Callum at 2012-07-30 10:47:07

If you look at the top of the plugin file (<a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/trunk/wp_mail_smtp.php" title="Latest version of WP Mail SMTP, file wp_mail_smtp.php" target="_blank" rel="nofollow">wp_mail_smtp.php</a>) then you'll find a block of code you can copy and paste into your wp-config.php, then make the appropriate changes.

Marcelo cannobbio at 2010-09-02 04:19:14

Something's wrong @ http://wordpress.org/extend/plugins/wp-mail-smtp/ Are you updating the plugin? There's no download file anymore. Thank you.

Callum at 2010-09-17 08:01:09

Alas, I'm only able to provide support in English. If you're able to re-post your question in English I'll do my best to help.

Callum at 2010-07-31 12:44:36

Ok, based on the results of our email chatter, there must be something else changing the from address before it gets to this plugin. The plugin is not changing the address because it has already been changed from the default (which is wordpress@yoursitename.com). Try disabling all other plugins, then see if it works. If that does work, try re-enabling plugins one at a time, sending a test mail between each one. Then you can hopefully pin down which other plugin is affecting the from email address.

robert at 2011-12-02 16:07:52

The same thing happened to me. Was working great until around the same time, and then only get the cannot connect to host message.

Callum at 2011-01-28 13:20:02

I'm not familiar with the other plugin so I've no idea. If it uses wp_mail() instead of mail() then the two plugins should work fine together.

bart at 2012-04-23 14:35:50

Hi Callum, I notice the same on items you mentioned. I also informed the host of the same. And you are correct the server it connects with instead of smtp.gmail.com is indeed the server the site is hosted on. I once again asked for SSH access and will give you username and PW for this but I prefer this to be send via a private message to you. can you tell me how to reach you more privately? Thank you btw for your continued support on this !!!

Alyen at 2010-08-09 01:15:24

Since I did the upgrade to version 3.0.1 wordpress plugin wp-email-smtp send email stopped and when I try to send a test email I get the error message of Next Step: <code>Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#4093 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(21) "aaa@bbb.com" ["FromName"]=&gt; string(22) "Contato" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(58) "WP Mail SMTP: Test mail to aaa@aaa.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(23) "aaa@bbb.com" ["Password"]=&gt; string(8) "*******" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#4094 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(110) ["errstr"]=&gt; string(20) "Connection timed out" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(31) "aaa@aaa.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_baec03357435dd94d569be6c239b8cfb" [2]=&gt; string(35) "b2_baec03357435dd94d569be6c239b8cfb" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)</code>

Adam J Nowak at 2010-09-09 08:20:27

Thanks, I am using a gmail account, so that would explain it.

George Hsieh at 2010-10-14 08:34:02

When I activate WP Mail SMTP plug-in, there is a warning message: The plugin generated 179 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin. My platform is WP 3.0.1 on Linux box. But I had tested it on Windows box and it works without warning message, is there anything that I need to adjusted? BR, George

Bill at 2010-08-28 05:40:52

Hi, when installing on WPMU, should the plugin be installed in mu-plugins, or plugins?

James Collett at 2010-09-12 07:53:56

* WP-Mail-SMTP plugin for WordPress I have a WordPress imstallation with the Market Theme installed. You might have heard of that theme. I am trying to get a contact form added to the web site. I need your WP-Mail-SMTP plugin (or similar) because my platform is a Windows server and that is how emails need to go out. Your test function works just fine. But when I instal the Contact Form plugin that I have, no emails arrive at the intended destination. Can you suggest a Contact Form plugin that you know works with your plugin?

James Collett at 2010-09-12 08:19:00

I seem to have found a contact form that works, although the last time I got one working, something else in the theme got corrupted, so we will see. For info, the contact form that just would not work for me is:- Secure &amp; Accessible Contact Form v2.1 for WordPress (http://blue-anvil.com/). The one that does seem to work (fingers are crossed) is:- Fast and Secure Contact Form (http://www.fastsecurecontactform.com/) Maybe this will help someone else in a similar situation.

Joshua at 2011-12-11 02:09:56

Hello Sir, I think I may have found the issue. I started going through one plugin at a time and it appears their may be some kind of conflict or false positive while Wordpress Firewall 2 is active. I was able to activate and deactivate the smtp plugin no problem once I deactivated the WP Firewall 2 plugin. not sure how much it has to do with the issue but while the firewall is active certain things don't work so that leads me to believe the firewall may be blocking certain functions. I will post again if I can confirm this or if I find a different answer, but as of now it looks like I can modify the smtp plugin but need to do it while the firewall is off.

Callum at 2011-05-14 00:54:40

Come on Bob, I want to help you here. Did you read the error message you posted? Here's the salient part: <blockquote>ERROR: Password not accepted from server: 535 authorization failed (#5.7.0)</blockquote> It would appear the password is wrong. Which is probably a good thing as you copied / pasted in in plain text. I recommend you change it immediately.

Callum at 2010-08-23 18:41:33

You need to debug the PHP script. I'm not wiling to help any further. If you find a specific bug with this plugin, please report it here. Otherwise, I do not understand enough about your situation to help. I'm happy to help if you have a problem with this plugin, but debugging your PHP scripts is beyond the support I want to provide here. Best of luck with your code.

Alyen at 2010-08-08 04:27:01

It defenetly stoped working after upgrading to wordpress 3.0.1 I tested this on a blog, that still runs on WP 3.0 and it works So we need an update of this for WP 3.0.1

guenther at 2010-07-24 00:48:12

Hi, thanks for your plugin, but when installing it on WP 3.0 I get this error: "The plugin generated 186 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin." Any idea?

russ at 2011-08-16 13:13:14

Hi, I am using your plugin but the FROM address being used is not the one I have set in the advanced email settings. The from address being used is the USER I am logged in as. If I send a test email then it sends from the correct address though. I am using Subscribe2 to send out the emails if that makes any difference.

Callum at 2011-08-16 14:04:37

You could try using the <a href="http://wordpress.org/extend/plugins/wp-mail-log/" target="_blank" title="WP Mail Log plugin" rel="nofollow">WP Mail Log</a> plugin to see what's going on under the hood. I'm pretty sure that whatever plugin is setting the from email address, in which case, the WP Mail SMTP plugin will not override it.

DW at 2011-02-16 16:44:04

Callum- Not sure you can help me debug this or not but maybe you can. I'm using your plugin on a Windows Go Daddy hosted server. I've tried every combination of SMTP servers and ports suggested for Go Daddy and get an error every time. These are the exact same settings that everyone claims is working fine for them. I've taken over a site that a previous developer (abandoned our organization) put together where email worked fine. I replaced his complicated design with an easy WP design but can't get email to work. Is it possible that there is a server setting or a file being called that he was using that is causing some conflict? I've been on this error for two days and just can't figure it out. Thanks!

Callum at 2011-04-06 10:19:45

The mail server is telling you that you tried to authenticate, but authentication is not supported. Can you try with a different SMTP server? If it works consistently on another SMTP server, the problem lies with your current SMTP server.

Callum at 2011-04-06 10:22:26

Setting a from header is the correct way to select a from address. WP Mail SMTP is coded to only change the from name and email if it is the WordPress default, so if you've changed it already, it should be left alone by the plugin. I'm guessing the key to their issues will lie in the error messages. WP Mail SMTP is very simple, it tells the PHPMailer class within WordPress to use SMTP instead of mail(). Otherwise, everything is pretty much left alone. The guts of the plugin are about 300 lines of code, plus another 200 for the admin page.

DeBolem at 2011-01-28 00:48:38

Great plugin! Testing works fine and I am able to use it for site registration. However, after the user clicks the verification e-mail, they never receive confirmation from my Register Plus Redux plug-in. Do these two plug-ins play nice together?

Jim K. at 2012-04-23 18:34:51

It is the same, thank you. When you're talking about the point where I add my own options, do you mean adding something to the $wpms_options array in the plugin? Or something in the class-phpmailer.php file?

Jeroen van Beusekom at 2011-09-23 13:29:22

Hi Callum, Do you have any expericens implementering a DKIM-Signature? I made a start by creating a DKIM keys via http://phpmailer.worxware.com/ I got some files to put on my site, but also an instruction to add some options to my PHPMailer scripts; $phpmailer-&gt;DKIM_domain = 'leefretail.nl'; $phpmailer-&gt;DKIM_private = '/home/leefretail.nl/public_html/.htkeyprivate'; $phpmailer-&gt;DKIM_selector = 'phpmailer'; $phpmailer-&gt;DKIM_passphrase = '1316******'; Is it save to put these lines in your plugin, on the position you indicated ? Kind regards, Jeroen van Beusekom

Bob at 2011-05-14 00:50:34

OK, here is the Test Email; Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#66 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(25) "no-reply@oldtimerrubs.com" ["FromName"]=&gt; string(27) "Old Timer Rubs &amp; Seasonings" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(44) "WP Mail SMTP: Test mail to bobg276@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(21) "mail.oldtimerrubs.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(25) "no-reply@oldtimerrubs.com" ["Password"]=&gt; string(10) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#67 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; resource(147) of type (stream) ["error"]=&gt; array(3) { ["error"]=&gt; string(11) "RSET failed" ["smtp_code"]=&gt; bool(false) ["smtp_msg"]=&gt; bool(false) } ["helo_rply"]=&gt; string(120) "250-mail8.hspheredns.com 250-PIPELINING 250-8BITMIME 250-SIZE 20971520 250-AUTH LOGIN PLAIN CRAM-MD5 250 STARTTLS " } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(17) "bobg276@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_7c83d2dc047a3137ada3f1a5cb58f03e" [2]=&gt; string(35) "b2_7c83d2dc047a3137ada3f1a5cb58f03e" } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 mail8.hspheredns.com ESMTP SMTP -&gt; FROM SERVER: 250-mail8.hspheredns.com 250-PIPELINING 250-8BITMIME 250-SIZE 20971520 250-AUTH LOGIN PLAIN CRAM-MD5 250 STARTTLS SMTP -&gt; ERROR: Password not accepted from server: 535 authorization failed (#5.7.0) SMTP -&gt; FROM SERVER: SMTP -&gt; ERROR: RSET failed:

Bob at 2011-05-13 23:35:13

Having problems with sending smtp emails. This is what I am told; Looks like it is still using the mail() function and not using the SMTP settings. I say that as I tried to register and mail is in the server's sendmail queue and did not go to the mail server. I dug in to the code and it is sending mail via $General-&gt;sendEmail called from./wp-content/themes/framework/library/includes/registration.php and function declared in ./wp-content/themes/framework/library/functions/general_functions.php which in turn tries to use wp_mail and if that fails it tries to use regular mail() function. Though I can not say for sure if wp_mail is actually being used and the smtp plugin simply isn't running properly and so falling over to mail() or if the mail function is being use. Only way to know would be to edit the code a bit in the general_functions file and tack on a note to the messages variable for either one . If you want me to try this, please let me know. Okay test showed it is using the regular mail function because wp_mail failed. Unfortuantely not sure why it failed and would need further debugging by the plugin developer . Any Help Appreciated, Bob .

Callum at 2011-05-13 23:48:34

The plugin was downloaded 451 times today, 398 times so far today, 3'452 times last week. I don't mean to be dismissive, but the code works. The plugin is very simple, it uses functionality that' built right into WordPress. This plugin merely activates that functionality, which is otherwise simply left dormant. There have been one or two small bugs with sender settings over the years that this plugin has been active, but it's been a long while since any of those were reported, and your message doesn't point to a specific bug, it's more of a general "ask the developer to debug, maybe it's not working" type message. So in response to that, I can say with some degree of certainty, the code works, the plugin behaves as expected. If your configuration is accurate for your server environment, it should work. Have you tried using the in-built test functionality? Do you get any feedback from that? It looks from your message like the framework theme has it's own way of sending mails. I'd suggest debugging starting there.

Bob at 2011-05-13 23:56:21

Hi Callum, Thank you for your quick reply. I was told this is the best smtp plug-in in use today. My problem is that I am not a coder, programmer or designer. I purchased this wp_theme from Templatic 7 weeks ago and between Templatic and my Hosting Company who has done more than their share to try and help me we still have NO SMTP emails. So you can see my situation I hope, you are the last hope before I can this whole project. 7 Weeks and NO one can fix this thing. Thanks, Bob

Callum at 2011-05-14 00:31:50

Bob, I'll do what I can to help you. The first step is for you to answer my specific questions clearly and precisely. I'll repeat: Have you tried using the in-built test functionality? Specifically, I mean, go to Options &gt; Advanced Email Options in the admin page and send a test message. Do you get a true or false result?

Glenn at 2012-03-10 20:49:59

I think I'm hoping for something a little different than the comments above. I don't want my server to be able to send any mail that doesn't come from WP Mail SMTP or a similar plugin. The purpose is to avoid damage from a potential security hole that allows a malicious script to send spam from my server. What led me to this plugin is that I (mis)understood it replaces the php mail calls from WP. I'm not well-informed, so forgive any obvious stupidity. I want the WP outbound emailing plugin to work basically the same way an e-mail client does -- which means I do not need to have an e-mail server of any kind functioning on the server, doesn't it? With no e-mail server then my vulnerabilities would be limited to a script hacking the plugin itself, no? If I'm completely off track, please just say so or if there is any advice on how to achieve my purpose, it would be tremendously appreciated.

Callum at 2010-11-14 10:08:24

Are you familiar with PHP? Can we try some debugging? I'm curious as to what causes this issue. Are you seeing the correct behaviour when you disable WP Mail SMTP? If you are, do you need the plugin for another reason?

Callum at 2012-04-24 16:46:51

Awesome, thanks for confirming. I think notepad can be a bit funky with quotes, so glad you got it sorted.

Todd at 2012-04-24 16:37:38

Yes, that was exactly it! I replaced all of the quotes with a single tick ' and it now works perfectly. Thanks!

Chad Wyatt at 2012-03-07 20:52:13

I found that on the password recovery/reset process, the plugin was returning the default from email of "wordpress@smswordpress.com" rather than "chad@smswordpress.com". My smtp account authentication failed as a result. To fix this, I manually coded the wp_mail_smtp_mail_from function by adding this line at the top of the function "return 'chad@smswordpress.com';". I know this is a hack but don't have time to dig any deeper right now. It works for now.

Christopher Roberts at 2012-05-26 18:12:10

How do I find out my SMTP settings? localhost doesn't seem to work...

Callum at 2012-03-07 23:50:37

This might have the unintended consequence of always setting the from address as yours, even when WordPress is sending an email from somebody else (for example, in the case of comment notifications, where the From address is set to the person who posted the comment). If you're able to figure out why your setup isn't working, and find a bug in the code, please do let me know. The plugin is used by many people across many types of host and I haven't had any similar bug reports recently.

Titus Biao at 2011-04-08 04:56:38

Hello Callum, Thank you for you perfect WP-Mail-SMTP plugin. That helps me a lot. But I really worried about the security when providing Password. You know, some hackers can easily break the WP-Admin account and admin-password, so does it mean that they can easily get the information about my Gmail account and Gmail Password, since I need to fill into WP-Mail-SMTP? I mean that, do these Gmail information will be encrypted in some irreversible algorithm?

Asi at 2010-12-17 04:17:02

I can send test emails using WP Mail SMTP on WordPress installation, but when I install BuddyPress (or when BuddyPress is installed directly on my host server), no emails can get thru. Using php mail function the phpmailer object [errorinfo] field reads "Could not instantiate mail function." And using SMTP, the [errorinfo] field reads "SMTP Error: The following SMTP Error: Data not accepted.support@mydomain.org". Stragely the [From] field in both cases reads noreply@www.mydomain.org, while I am using "support@mydomain.org" on the form and everywhere else. The problem turns on and off as I deactivate and reactivate BuddyPress. Does anybody have a clue about the whats happening?

Nigel Freeney at 2011-03-22 19:58:43

Hi Callum, In general I have found your wp-mail-smtp plugin easy to use. Unfortunately having configured it to use SMTP (and successfully tested the settings) an attempt to request a new password has failed with the following error: The e-mail could not be sent. Possible reason: your host may have disabled the mail() function... How do I go about working out where the problem might lie. PHP is not my primary coding base (ASP/VBscript instead)? I can access the admin area OK I was simply trying to send another admin a new password susing this feature. Thanks, Nigel

Bruce at 2011-11-25 11:57:44

Hi Callum, If I have your plugin active (I'm using WordPress 3.2.1), when I'm at my wp-login page, if I click the 'forgot my password' link and enter my email, I get the following error: <i>The e-mail could not be sent. Possible reason: your host may have disabled the mail() function...</i> When I disable your plugin, the feature works. Fair enough if that's just something I have to deal with, but I'd appreciate any ideas you have any ideas for how to get around that. Thank you for sharing your plugin. :)

Jeff at 2011-12-24 13:55:26

As a follow-up to my post yesterday, I also tried using port 465 and SSL with Outlook 2007 and it worked just fine also.

Callum at 2011-07-15 14:32:20

I refer you to the first error message covered on the <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" title="WP Mail SMTP" rel="nofollow">plugin page</a>.

WangWei at 2011-07-30 17:21:06

The plugin works.Thank you very much.

Chad Wyatt at 2012-03-07 23:56:38

Thanks for pointing that out. I don't think I'm using any of those features right now. If I find out more detail, I'll let you know.

Cerissa at 2011-01-03 21:39:56

Hi, I am trying to get this plugin to work and have had no success. I have explored the other questions and answers and tried the suggestions to no avail. Can you offer any insight on how I might be able to get this to work? First time installing and have not been able to get it functional yet. WP Version is 3.0. Below is the error I am getting: Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#243 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(25) "info[at]americandentalco.com" ["FromName"]=&gt; string(25) "American Dental Marketing" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(44) "WP Mail SMTP: Test mail to cjohnson[at]ivjr.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(25) "info[at]americandentalco.com" ["Password"]=&gt; string(6) "adm123" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#242 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(10060) ["errstr"]=&gt; string(185) "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(17) "cjohnson@ivjr.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_e724483da513d45432a61c757ad0a837" [2]=&gt; string(35) "b2_e724483da513d45432a61c757ad0a837" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

Callum at 2011-07-28 18:10:54

I'm not clear where you're getting the contact form. To the best of my knowledge, WordPress includes no contact form and this plugin certainly does not include a contact form. So I'm assuming you must have another plugin installed which allows you to create a contact form. Did you write the code for the contact form yourself? Do you have a contact form plugin installed? If you deactivate all your plugins, can you still see the contact form? I'm 99% sure the problem lies with the contact form, not with the WP Mail SMTP plugin.

Callum at 2011-07-28 18:07:54

Thanks for sharing your change, particularly as a patch, makes life easy. :-) Do you think this is something that makes sense in the plugin? I imagine that very few people would like to add a custom header, so I wonder if it could be more confusing than beneficial to most users. What do you think?

WangWei at 2011-07-28 16:29:17

Hi Callum, SMTP dose work,I'v got the true result,but i could not recieve any email except the test mail.It seems my site still use mail(),not the SMTP.How to fix it?

Callum at 2011-12-17 17:37:25

I recommend asking the contact form plugin author. The WP Mail SMTP plugin only affects how mail is sent, not the contact form functionality.

alex at 2011-03-08 22:58:30

Hello Callum, First off thanks for a great plugin. I have been using it for quite some time and appreciate you taking the time to release it. I upgraded from from WP-MAIL-SMTP 0.8.6 to 0.8.7 this afternoon and during testing noticed that I was unable to use the PHP mail () sending method and was unable to track down any errors via PHP, Apache, or Postfix itself. When configuring for sending using a remote SMTP server things work without issue and when downgrading to 0.8.6 things work without issue as well. I reviewed the changes that had been made and noticed the addition of the below line which is what I was able to modify to make things work though I am sure the modifications are not proper. add_filter('wp_mail_from','wp_mail_smtp_set_sender', 99); I simply modified to... add_filter('wp_mail_from_email','wp_mail_smtp_set_sender', 99); It should be noted that I am using PHP 5.3.5 and WordPress 3.0.1. I would assume it is related to something with PHP 5.3.5 but again I am not a PHP expert by any means. The error located in the debug output when attempting to send an email is below. ["ErrorInfo"]=&gt; string(36) "Could not instantiate mail function." Any assistance you could provide would be appreciated. Thanks. alex

Callum at 2011-07-28 18:12:07

As far as I know, WordPress sends all emails through the wp_mail() function. If you're using custom plugins, they may be sending emails via mail() directly. What emails are you not receiving? If you try the "forgotten password" process for your user, do you receive that email?

Romeo Adrian Cioaba at 2011-07-28 18:59:24

Glad i could add something to this great project. I think it makes sense to have headers and let me tell you why. I'm using sendgrid.com and you can add a custom header to the emails sent through their system. With this header you can better track the emails (http://sendgrid.com/documentation/display/api/Categories)

Callum at 2012-04-22 19:46:02

Pastie is a public service, you'd need to post the link for me to be able to see your paste.

Callum at 2012-04-22 19:47:44

Are you testing to the same email address as the contact form is trying to send to? I'm not sure what that error message means, you might get more information from the contact form plugin. If the test message feature works, the WP Mail SMTP plugin should be working as expected.

Callum at 2011-02-21 13:19:29

If you send a test email to your gmail account, what does the debugging output show?

Callum at 2011-07-29 16:09:44

If you delete the plugin file from your server, it will have been completely, absolutely, 100% uninstalled. The only thing left are several values in the wp_options table. If you want to remove them, you can find a list <a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/trunk/wp_mail_smtp.php#L41" rel="nofollow">here</a>. However, those options are 100% ignored by WordPress itself. So unless you have another plugin installed that is using the same option names, there is zero chance of cross over. After you disable a plugin there's really no way for it to affect anything. If you can post details of the specific error you're seeing, then I may be able to offer more useful advice.

MARK ROWE at 2011-02-21 13:29:51

It shows... Test Message Sent The result was: bool(true) The SMTP debugging output is shown below:. ...and thats it cheers

Callum at 2011-02-21 13:35:05

It appears that the email was accepted by your SMTP server. The issue might lie between that server and Google's mail servers. You could try asking the administrator of your SMTP server.

MARK ROWE at 2011-02-21 13:42:41

I do a test send to my gmail accounts from one of my pop accounts and i get the email fine. It seems to be an issue with the plugin and or WP thingy. Any other suggestions?

Nigel Freeney at 2011-03-24 09:36:02

Hi Callum, I don't appear to have any other apps that would affect this function. I have to do a fresh install for another site soon so I will test this on the new installation with jus this app loaded and active. Basically I click on the "Lost Password" link I add in the email of the ccount (I have SI CAPTCHA installed so add in the captcha code. Click on the "Get New Password" button Then the screen rereshes and the error message appears. Thanks, Nigel

kyriakosb at 2011-12-26 11:06:56

I cant access to settings. Why? Thanks

Dennis at 2012-02-12 03:59:03

Hi, I am using your plugin with Contact Form 7 to send emails. In a form we have it sends the first email to the website owner and the second one to the client. I am trying to make it so the email to the website owner bypasses your plugin. How would I do this? Thanks you, Dennis

Callum at 2011-01-28 13:19:12

No. There's a limit to how much support I'm willing to provide. Read my message again carefully, read your code, and I trust you can figure it out. If you tell me that you've genuinely spent 12 hours working on this problem and have not figured it out, I'll be more explicit. I won't <a href="http://www.thefreedictionary.com/spoonfeeding" rel="nofollow">spoonfeed</a>.

Ellie Kennard at 2011-04-17 21:34:55

Hello, I installed this plugin to enable mail to be sent by SMTP instead of php mail and then found that it didn't work for what I wanted it to (to get a contact form working on a Windows server). I disabled it and now find that it has messed up my WP mail sending as I no longer receive mails advising me of comments etc. nor will Subscribe2 send out mails as before. (Mail did work perfectly as expected prior to this) I reactivated the wp-mail SMTP plugin and changed the settings back to php mail, but it still isn't working. Finally I deleted the plugin in the hopes that this would set all back to normal. It has not. Is there anyway you can give me a hand with restoring the mail sending function of WP please? Desperate as I have subscribers who are expecting to receive notifications of postings and I am not being advised of comments pending approval either. Cheers Ellie

applequan at 2010-11-23 11:59:46

Oh,thank you for your reply,I just get to know the reason why the mail is not sent. It is all because of the policy of godaddy which means I can only use Godaddy's limited mail plan and configration and the other mail provider's(include Gmail) smtp service is deprecated! So I change gmail to my own site mail——i@dingkee.com and it works quite perfect~~~~

Callum at 2011-05-23 10:35:56

I'm not sure what to suggest. It sounds like the issue lies somewhere with the configuration or setup of the contact forms. Are they both set to send emails to the same destination address? Try using the email test feature to check all the addresses if they are different. Otherwise, I recommend asking the Contact Form 7 plugin author to see if they can shed any light on what's going on. Sorry I can't be of more help at this time.

Joe Jordan at 2011-03-04 09:17:34

Hiya, I have noticed that my site has started sending emails twice for each comment posted - this is since I upgraded to wp version 3.1 by an "auto" upgrade. I am using WP-Mail-SMTP version 0.8.7 , but previously 0.8.6 did it too. I'm not sure if this is a plugin error or something in 3.1 - have you any ideas? Thanks, Joe

jamie gerig at 2011-10-03 16:20:06

Since installing Wordpress on my GoDaddy hosting account 2 months ago I have been unable to receive emails sent via a contact form on my website. I have tried over 6 different contact forms and now I am using a contact form as part of my Woo theme. None have worked. When sending an email via the contact form - there is no error message - it says the email has been successfully - but it never arrives (it is not in my junk folder). I have tried the settings for both gmail and my business email tied to my website - using the WP Mail plugin. GoDaddy have offered no helpful advice. Here is the latest version of my contact form: http://www.zorba.com.co/wordpress/bookings Please help. I am desperate. Jamie

Callum at 2011-03-09 10:52:04

I'm not sure why you're seeing that error or why your change would fix it. However, I've given the plugin a bit of an overhaul this morning. I got rid of that function altogether and put it into the main init function, then I gave the admin page a massive tidy up. Would you be so kind as to test the <a href="http://downloads.wordpress.org/plugin/wp-mail-smtp.zip" title="Development (trunk) release of WP Mail SMTP" target="_blank" rel="nofollow">development release</a> and let me know if it works for you?

Callum at 2011-08-17 11:58:16

Can you activate other plugins? If the plugin is not active, it's having zero effect on your blog. I'm not sure what to suggest. You could try disabling all plugins, then activate them again one at a time, see if you can identify which plugin causes the issue. There may have been a problem during the install, if you used WordPress's in-built installer. Personally, I've never used it, I always upload files manually. To delete the plugin you can always go to the wp-contents/plugins folder and delete the entire wp-mail-smtp folder, that will remove the plugin completely.

Ian at 2011-08-17 12:01:21

Thanks for your reply Callum. I have now got this plugin working which is a big relief as I run several websites and my host has turned off the mail function! The problem was the other plugins. I had to deactivate them all and then your plugin would work. I filled the details in and turned the other back on and everything works great. Thanks for a lifesaving plugin! Ian

Maxime Beaudoin at 2011-03-21 12:43:28

Humm, i think you right but, the return value of the constant __FILE__ return me <code>/var/www/svn-content/blogs-v2-trunk/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php</code> and the the return value of plugin_basename(__FILE__) is <code>var/www/svn-content/blogs-v2-trunk/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php </code> I use wordpress 3.0.1

Maxime Beaudoin at 2011-03-21 12:46:05

I think the problem is in relation with this post http://core.trac.wordpress.org/ticket/13550. Symlink problem with WP_PLUGIN_DIR

Andreas at 2011-04-05 15:15:49

Hello and thanks for a sweet plugin, but i got some wierd issues. Then i send test mails it works sometimes and sometimes not. the bad thing its the same with the user registration confirmation mail. it works about 50/50 i got this output from a non working test mail: <code> bool(false) The full debugging output is shown below: object(PHPMailer)#33 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(17) "admin@myhost.com" ["FromName"]=&gt; string(5) "Admin" ["Sender"]=&gt; string(17) "admin@myhost.com" ["Subject"]=&gt; string(43) "WP Mail SMTP: Test mail to XXXXXX@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(16) "mail.myhost.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(19) "noreply@myhost.com" ["Password"]=&gt; string(12) "passcrap" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#32 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; resource(181) of type (stream) ["error"]=&gt; array(3) { ["error"]=&gt; string(11) "RSET failed" ["smtp_code"]=&gt; string(3) "503" ["smtp_msg"]=&gt; string(39) "AUTH command used when not advertised " } ["helo_rply"]=&gt; string(139) "host.host.com Hello myhost.com [xxx.xxx.xxx.xxx] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP " } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(16) "xxxxx@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_1761a1445d8a13a5b284b8a51603bc0f" [2]=&gt; string(35) "b2_1761a1445d8a13a5b284b8a51603bc0f" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(2) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: SMTP -&gt; FROM SERVER: host.host.com ESMTP Exim 4.69 #1 Tue, 05 Apr 2011 20:47:10 +0800 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -&gt; ERROR: EHLO not accepted from server: host.host.com ESMTP Exim 4.69 #1 Tue, 05 Apr 2011 20:47:10 +0800 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -&gt; FROM SERVER: 250-host.host.com Hello myhost.com [xxx.xx.xxx.xxx] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP SMTP -&gt; ERROR: AUTH not accepted from server: 250 host.host.com Hello myhost.com [xxx.xx.xxx.xxx] SMTP -&gt; FROM SERVER: 503 AUTH command used when not advertised SMTP -&gt; ERROR: RSET failed: 503 AUTH command used when not advertised </code> I contacted my webhost cause i felt this must be there fault, they told me : "The reason why the emails kept failing because of the email accounts should set to be authenticated when sending email from the server to outside. You need to optimize your script to authenticate with the email service before sending out email. " Any idea?

Mario at 2013-01-10 06:55:34

Hi Simone, could you please detail how you exactly configured the plugin to work with SES? I tried the same without success; on the same (multisite) WP installation I can work instead with WP SES plugin, so it is not an issue of misconfiguration on the SES side. Thank you in advance!

yashmistrey at 2011-01-27 12:21:37

thanks for reply ! i am not smart in php , can you define where to add wp_ prefix &amp; how to ? please reply sir

S180 at 2010-12-06 01:30:11

How about this error? Where am I going wrong Callum? = SMTP Error: The following SMTP Error: Data not accepted. bool(false) The full debugging output is shown below: object(PHPMailer)#39 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["From"]=&gt; string(18) "info@xxxx.com.au" ["FromName"]=&gt; string(7) "xxxx" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(27) "WP Mail SMTP: Test mail to " ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(18) "mail.xxxx.com.au" ["Port"]=&gt; string(0) "" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#40 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; resource(136) of type (stream) ["error"]=&gt; NULL ["helo_rply"]=&gt; string(108) "250-sknet114mail.seekdotnet.com Hello [202.125.39.148] 250-SIZE 31457280 250-AUTH LOGIN CRAM-MD5 250 OK " } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(0) "" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_250b1dbca517e5a61013fac400b6b7e9" [2]=&gt; string(35) "b2_250b1dbca517e5a61013fac400b6b7e9" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 sknet114mail.seekdotnet.com SMTP -&gt; FROM SERVER: 250-sknet114mail.seekdotnet.com Hello [202.125.39.148] 250-SIZE 31457280 250-AUTH LOGIN CRAM-MD5 250 OK SMTP -&gt; FROM SERVER: 250 OK Sender ok SMTP -&gt; FROM SERVER: 501 Syntax error. Syntax:{RCPT TO: [SIZE=msgSize]} SMTP -&gt; ERROR: RCPT not accepted from server: 501 Syntax error. Syntax:{RCPT TO: [SIZE=msgSize]} SMTP -&gt; FROM SERVER: 250 OK

Pippin Williamson at 2011-01-06 15:33:19

They do get handled properly when the plugin is disabled. Thanks for your help, I'll let you know if I figure it out.

Callum at 2012-04-21 12:46:08

That looks like the connection is working properly. Can you <a href="http://www.pastie.org/pastes/new" title="New pastebin on pastie" target="_blank" rel="nofollow">pastebin</a> the debug output from the test mail function? Do you have any other plugins active that might be affecting mail sending? If you try deactivating all other plugins do you get the same test mail output?

Alexandre at 2012-08-11 03:23:20

WP Mail SMTP EMAIL TO FRIEND IS NOT SENT (1 post) My hosting server accepts only authentication for sending mail I used the plugin WP-Mail-SMTP and solved my problem. But when I tried to send to a friend did not work, what’s the problem? See how the form on the right side, note also sending a copy to your email does not work: http://santiagoimoveis.net/novo/venda/residencial-estrela-do-mar/ Best regards Alexandre Monteiro

Marcos at 2010-12-21 16:42:19

I have also a godaddy hosting. How did you do it? What is smtp host and port of godaddy? Thank you!

Callum at 2012-05-09 13:54:44

Did you post the same question under 2 different names, each one posted twice? I'm guessing the answer to this was already covered <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-7/#comment-119177" rel="nofollow">here</a>.

Callum at 2012-05-09 13:55:27

Do you see an error message in your PHP error logs? Can you post the message here?

Callum at 2012-05-09 13:50:32

It's a PHP error, you'll need to ask your host if fopen() has SSL support enabled. You could try disabling SSL and then see if it works, but that depends on whether your mailserver allows it or not.

Callum at 2012-05-09 13:47:26

Glad you were able to get to the bottom of it, thanks for posting back the update.

Callum at 2012-05-09 13:45:38

Does mail work correctly with the plugin disabled? It might be that your host does not allow the from name / email to be changed, I'm not sure. This error means that there was a problem with PHP's mail() function. If the issue still exists with the plugin disabled, I'd recommend contacting your host.

Callum at 2012-05-09 13:47:06

This plugin only works within the WordPress environment. Does your script include WordPress at some point? It sounds like what you're trying to do is outwith the scope of the support I provide here. If you'd like to discuss commercial development, let me know.

Jonathan Bjorgen at 2011-04-17 07:59:01

Callum, Would it be possible to have the option to default the "From Email" and "From Name" to be that of the currently logged in user? If no user was logged in, it could revert to the defaults or the current settings on the config page. I use this plugin to send out notifications for new posts (in conjunction with Subscribe2) and it'd be nice if email would return to the user who made the post. If necessary, I could try to implement this and send you the results.

Luke at 2011-05-02 19:16:28

This is the error I am getting. Any help would be greatly appreciated. Thank you! The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#271 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(14) "(myemail)@(myemail)" ["FromName"]=&gt; string(24) "The Luke McGuire Company" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(46) "WP Mail SMTP: Test mail to (my email)@(my email)" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(14) "(my email)@(my email)" ["Password"]=&gt; string(11) "(my password)" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#277 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(32) ["errstr"]=&gt; string(96) "Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(19) "(my email)@(my email)" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_6fc14d2fa278e995b2ca0aada4b1b8cf" [2]=&gt; string(35) "b2_6fc14d2fa278e995b2ca0aada4b1b8cf" } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (32)

Callum at 2010-12-22 13:51:39

I think it might be smtp.secureserver.net on port 25, but that's from memory, so it may be completely wrong. You'll probably find the answer somewhere on the support history. See the plugin page and then check the comment pages (use your browser's search in page feature to find mentiosn of GoDaddy).

S180 at 2010-12-08 06:32:34

Thanks for getting back to me Callum. I did as you suggested and tried using the gmail SMTP server and the error message is slightly different. I'm worried that it might be a syntax error somewhere as the errors suggest.. However, I haven't changed anything from the defaults?? I am using IIS 7.0 (unfortunately) The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 mx.google.com ESMTP d10sm311633and.39 SMTP -&gt; FROM SERVER: 250-mx.google.com at your service, [202.125.39.147] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES SMTP -&gt; FROM SERVER: 250 2.1.0 OK d10sm311633and.39 SMTP -&gt; FROM SERVER: 555 5.5.2 Syntax error. d10sm311633and.39 SMTP -&gt; ERROR: RCPT not accepted from server: 555 5.5.2 Syntax error. d10sm311633and.39 SMTP -&gt; FROM SERVER: 250 2.1.5 Flushed d10sm311633and.39

S180 at 2010-12-08 07:11:16

[solved - almost] 1) the Gmail server did end up working 2) I think the original problem was the authentication settings with the server

Karl at 2011-07-14 16:32:18

Hi there, I have tried every possible combination to try and setup my google apps smtp. It always gives me the same error with cannot connect to server. Thanks for ur help,

Callum at 2011-07-31 13:05:11

Great. I'm glad it's working for you. Would you care to share the solution you found here so other users may read it in the future?

Joshua at 2011-11-23 22:53:19

I have installed your plugin and used it many times but now I am getting an error, I am running WP 3.2.1 with Genesis Framework Ver. 1.7.1 and the AgentPress 2.0 Child Theme by Studiopress. Plugin is Ver. 0.9.1 and it seems to be conflicting with my site, I was unable to add a custom menu or disable other plugins until after removing the Email Plugin. I have since reinstalled it, but I am now unable to activate it just kicks me back to the home page and doesn't activate. Please let me know if you have any ideas Thanks

Phaedra at 2011-09-01 00:59:05

Hello Callum, Thanks for the plug-in. I got a strange email after running the test option on Advanced Email Options and am wondering what it is about (is it normal, could I have been hacked, etc.). I am using shared hosting at GoDaddy on Windows. I was able to set up the plug-in and send a test message to my gmail account. At my gmail account, it went to spam folder. Message says "This is a test email generated by the WP Mail SMTP WordPress plugin." Okay so far. But then I got an email to my "From Email Address" in Advanced Email Options. It is an error from qmail-send mailer daemon showing it couldn't send a message to 20 email address at yahoo, hotmail, etc. like carebear1@hotmail.com. At the bottom it shows and email with Return-Path as my from email with my Go Daddy domain name (which I receive emails at in Thunderbird). Subject: WP Mail SMTP: Test mail to (the email I used on the Advanced Email Options Test) Body: This is a test email generated by the WP Mail SMTP WordPress plugin. -- Thanks.

Ewout at 2012-04-29 18:20:13

hi Callum, my error with this plugin is: Could not instantiate mail function. I'm using the php()mail function as my (free)host Byethost doesn't allow SMTP sending. Below the error report. Can you please advice? The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#222 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(36) "Could not instantiate mail function." ["From"]=&gt; string(22) "info@ecounseling4u.com" ["FromName"]=&gt; string(22) "info@ecounseling4u.com" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(50) "WP Mail SMTP: Test mail to ewout.bouwman@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "mail" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; int(25) ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp:private"]=&gt; NULL ["to:private"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(23) "ewout.bouwman@gmail.com" [1]=&gt; string(0) "" } } ["cc:private"]=&gt; array(0) { } ["bcc:private"]=&gt; array(0) { } ["ReplyTo:private"]=&gt; array(0) { } ["all_recipients:private"]=&gt; array(1) { ["ewout.bouwman@gmail.com"]=&gt; bool(true) } ["attachment:private"]=&gt; array(0) { } ["CustomHeader:private"]=&gt; array(0) { } ["message_type:private"]=&gt; string(5) "plain" ["boundary:private"]=&gt; array(2) { [1]=&gt; string(35) "b1_a314c94077188d29d6d36e7b9b56939c" [2]=&gt; string(35) "b2_a314c94077188d29d6d36e7b9b56939c" } ["language:protected"]=&gt; array(17) { ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_error"]=&gt; string(19) "SMTP server error: " ["empty_message"]=&gt; string(18) "Message body empty" ["invalid_address"]=&gt; string(15) "Invalid address" ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count:private"]=&gt; int(1) ["sign_cert_file:private"]=&gt; string(0) "" ["sign_key_file:private"]=&gt; string(0) "" ["sign_key_pass:private"]=&gt; string(0) "" ["exceptions:private"]=&gt; bool(false) } The SMTP debugging output is shown below: Could not instantiate mail function.

Callum at 2011-08-16 10:17:07

Great question. I had no idea of the answer, but I have spent the last 30 minutes reading the code and I have found a change. Since WP 3.2, tls now equals STARTTLS. Previously, the connection was instantiated with tls:// or ssl:// prefixed to the mail server. WP 3.2 now includes PHPMailer version 5.1 which issues the STARTTLS command instead. I think this was related to dropping PHP4 support. So, if you're using WordPress version 3.2 or higher, then tls = starttls. As for what that means, you can read a little about it <a href="http://luxsci.com/blog/ssl-versus-tls-whats-the-difference.html" title="The difference between SSL and TLS for email" rel="nofollow">here</a>. I'm not sure how your mail server is configured, so I can't say which approach is more appropriate for your case.

Callum at 2011-05-03 15:14:37

The answer is in the error message. Unable to find the socket transport “ssl”. I recommend checking your php.ini settings around SSL, or contacting your server administrator.

Ellie Kennard at 2011-04-18 13:32:43

I suspect that as there has been more than 1 person who has experienced this, it must be related to the plugin. The effect was immediate and included when the plugin was disabled, when values were set back to what I suppose were original ones using the plugin and when the plugin was deleted. I will try deleting those values. Did you suggest this to the others and did it work for them? Resetting the folders using PhpMyAdmin apparently gets rid of the remains of particularly stubborn plugins? Ellie

Ellie Kennard at 2011-04-18 14:11:06

I have deleted those values, but only had 9. This one was missing: 'mail_set_return_path' =&gt; 'false', Does that tell you anything? Or is it not important? In any case the problem has not been fixed by doing this. Cheers! Ellie

Callum at 2012-04-23 17:41:23

There is a <a href="http://www.callum-macdonald.com/2012/03/29/2803/" title="Log all calls to wp_mail()" target="_blank" rel="nofollow">WP Mail Log</a> plugin which logs every mail that's sent via wp_mail(). I don't remember how much debugging info it saves though. It stores the data in a publicly accessible text file on the server, so I recommend using it for testing only. To add yourself as a BCC on all emails should be fairly easy. Check out the documentation for PHPMailer and look through the code to the point where it says something about adding your own options. That part is going to change in the next release so it'll be easier to write a plugin rather than changing the plugin code, but if you're after a hack today, that's the place.

Jim K. at 2012-04-23 18:07:04

Thank you again for your help, I do have WP Mail Log installed, it gives me a fire hose of information with every email, but no error messages. By PHP Mailer do you mean this: http://code.google.com/a/apache-extras.org/p/phpmailer/

Callum at 2012-04-23 18:08:59

Could be the same, not certain, you'll probably find relevant links in <code>wp-includes/class-phpmailer.php</code>.

yashmistrey at 2011-01-26 16:30:37

hi, first i would like to say thank u for this a powerful smtp plugin, it's working smoothly in my form, i am using window iis server php mail function not working on my server so i am using this i have a contact form that working in other server smoothly but not working in my ! could you tell me how to add class or include mailer to that contact form tamplete ? to see the contact tamplate see that form ! http://trevordavis.net/images/content/2009/02/contact-form.zip or http://wp.tdavis.webfactional.com/contact-form/

Callum at 2011-01-26 17:02:10

If you use the wp_mail() function to send messages, they should be properly handled by the SMTP server. Your code appears to use mail() instead of wp_mail(). I believe you can simply add the wp_ prefix and the code will work.

WangWei at 2011-07-30 01:40:41

thank you very much.I tried,but the result was the same.It's the screenshot:www.wangweiblog.com/mx314.png. It means:Email can't be send. maybe:Your host disable the mail() function.

Bart at 2012-04-21 07:20:10

Host responded with this confirmation from server telnet smtp.gmail.com 465 Trying 173.194.67.108... Connected to smtp.gmail.com (173.194.67.108). Escape character is '^]'. Strange to me I assumed this was the issue

Callum at 2011-11-03 10:29:26

To be clear, smtp_user is *not* necessarily an email address, it's a username, which might be an email (with the like of gmail) but is not an email address with many providers.

Andy Daniel at 2011-08-15 12:43:50

Thanks very much for this plugin and your hard work. I've been using it successfully for quite some time. However I recently migrated my email to Exchange Online and can't seem to get it to work now. Has anyone had success using this with Exchange Online? According to Microsoft I should be able to relay using authentication over TLS 587. I notice that you mention that your SSL/TLS implementation is not the same as "STARTTLS." Do you mind telling me how it is different? I suspect this is the problem. I'm receiving a "ERROR: Failed to connect to server:" Thanks!

Stig Ulfsby at 2010-12-09 20:04:34

I get an error message when activating the wp mail SMTP plugin: "The plugin generatet 186 characteers unexpected result during activation. ..." The plugin seems to work, but I am not sure what this may cause. I use WordPres 3.0.2. I have the same problem in several sites.

Social Media at 2011-05-18 21:25:31

I am having a very similar issue. Mail server works fine, i have verified and checked username and password. I am getting error (111), here is a snippet from error log Test Message Sent The result was: <code> bool(false) The full debugging output is shown below: object(PHPMailer)#335 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ...... ....... ["Host"]=&gt; string(20) "mail.mailserver.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(23) "email@here.com" ["Password"]=&gt; string(11) "passwordhere" ......... .......... } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111) </code> Could there be an issue with a theme or plugin as i see a lot of people having the same issue.

Spence at 2011-02-27 23:08:49

Hi There. I'm trying to get the SMTP plugin to work with Google Apps, and am having some trouble. All the settings are configured correctly, but when I attempt to send a test e-mail, it fails with the following error: <code>SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)</code> Settings are as follows: Mailer: Send all WordPress emails via SMTP SMTP Host: smtp.gmail.com SMTP Port: 465 Encryption: Use SSL encryption. Authentication: Yes: Use SMTP authentication. Username: webmail@eleora.com Password: [Let me know if you need this.] Any help you can provide would be much appreciated.

Callum at 2011-02-27 23:13:39

I think the error is the same as "Could not connect to host". I'd guess it's an issue with PHP settings, probably php.ini. I recommend asking your server administrator.

Spence at 2011-02-28 00:16:05

OK, well the server host is GoDaddy, so I may be on my own when it comes to altering the settings in the PHP.ini file. Any suggestions on what settings may need tweaking?

Mark at 2011-02-12 06:14:14

Thanks for the great plugin Callum! I'm having the reverse problem. I have it working in a plugin (after tweaking the PHP) and even working on code outside of Wordpress (using the wp function include) and both work great! Problem I'm having is Wordpress admin emails don't work. The test works, but none of the admin emails do. I searched the code using: sudo grep -H -r " mail(" /opt/bitnami/apps/wordpress/htdocs/ and found plenty of places I need to fix my custom code - but nothing in my theme or anything that looks like it would be using mail() instead of wp_mail(). I'm using Wordpress 3.01 on Bitnami Ubuntu Wordpress (LAMP) stack running on Amzon EC2. Any ideas of what direction I should go to figure this one out??

Jack Morton at 2010-12-10 03:18:02

I'm hosting my website on my own computer, is it possible to configure the SMTP to send if I'm doing this? I'm not sure if I can send emails because it's not on any hosting server. Is that significant? It seems that all that would be required it PHP and SQL, so I'm not sure why this wouldn't work.

Callum at 2012-07-19 10:45:43

I would suggest trying one of the freelancing sites to find somebody who can help you. I don't usually get involved with projects below $500 USD.

Jack Morton at 2010-12-10 22:55:34

Thanks a lot, I know I configured it correctly, but I didn't consider that the firewall would interfere. I always forget about that. I'll configure my firewall to allow it and see where I can go from there. Thanks! Well, I planned on putting the results here under that message, but I have a small problem.... When I read the part of your message that said I'll need to configure the SMTP server myself, I didn't realize that meant setting up a virtual SMTP server with which to access the actual SMTP server. I understand that now, of course, but I don't know how to do it. I looked into IIS, for when I searched for how to set up a SMTP server, that was in a lot of the results. Now I just need to know how to use it. Is IIS required to set up a SMTP server on a Windows 7 system? If not, could you direct me to a tutorial or guide to help me do this? I don't know much about web development, which is mostly why I'm doing this, as I would like to learn more. Thanks for response, and I hope you can help me. Also, sorry about jumping around subjects in this message, a lot of them are afterthoughts, and I don't want to rewrite my message to make it more sensible.

Callum at 2011-02-28 10:04:02

If you look back through the support history you'll find settings that work for people on GoDaddy servers.

Gijs at 2011-01-30 15:28:01

Hi Callum, Thanks for the plugin... I found a small bug in the wp mail plugin. The From Email inserts www. after the @. In the code I can see you strip the url in case there is no From Email set. So in my case the opposite happens. It's not a big problem for me since I am using a noreply. However I guess you would be interested in the report. Cheers, Gijs

Bob at 2011-05-14 01:30:50

OK correct paswrd. but still no emails. Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#66 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(25) "no-reply@oldtimerrubs.com" ["FromName"]=&gt; string(27) "Old Timer Rubs &amp; Seasonings" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(49) "WP Mail SMTP: Test mail to sub@dfaphotography.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(21) "mail.oldtimerrubs.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(25) "no-reply@oldtimerrubs.com" ["Password"]=&gt; string(12) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#67 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; int(0) ["error"]=&gt; NULL ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(22) "sub@dfaphotography.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_833f78466b8007bb17b23acf811e681f" [2]=&gt; string(35) "b2_833f78466b8007bb17b23acf811e681f" } ["error_count"]=&gt; int(0) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: 220 mail8.hspheredns.com ESMTP SMTP -&gt; FROM SERVER: 250-mail8.hspheredns.com 250-PIPELINING 250-8BITMIME 250-SIZE 20971520 250-AUTH LOGIN PLAIN CRAM-MD5 250 STARTTLS SMTP -&gt; FROM SERVER: 250 ok SMTP -&gt; FROM SERVER: 250 ok SMTP -&gt; FROM SERVER: 354 go ahead SMTP -&gt; FROM SERVER: 250 ok 1305333091 qp 18514 SMTP -&gt; FROM SERVER: 221 mail8.hspheredns.com

Callum at 2011-05-23 20:03:56

I'm not quite sure what you mean. PHPMailer is the class that ships with WordPress. It allows PHP to send mails, either by SMTP or other methods. The bool(true) result means that the message was accepted by the transport mechanism (mail(), SMTP, etc). It doesn't actually mean that the message will be delivered. It only tells you that WordPress was successfully able to pass the message along to the next link in the chain. If that next link is misconfigured or malfunctioning, then the message may disappear and never reach its destination. I suggest checking the mail logs for whichever method you're using, perhaps you'll find some answers in there.

Callum at 2010-12-11 20:18:01

If you're hosting through IIS on Windows, you're on your own I'm afraid. I have zero exposure and even less interest in Windows based web hosting. In theory, there's no need to run your own SMTP server. Make sure PHP has the right settings to open connections to remote hosts on port 25, and it should work directly from WordPress to the SMTP server. I can help you set up the plugin, which is fairly easy, but configuring and / or choosing SMTP servers, providers, and so on is beyond the scope of support I really want to provide for this plugin.

Maxime Beaudoin at 2011-03-17 15:40:27

Hi, we encounter a problem using your plugin cause by the function "wp_mail_smtp_menus". The slug name define by the constant __FILE__ return absolute path by PHP when using symbolic link into unix. To resolve the problem, you need to use plugin_basename(__FILE__) instead of __FILE__. Example : <code>add_options_page(__('Advanced Email Options', 'wp_mail_smtp'),__('Email', 'wp_mail_smtp'),'manage_options',plugin_basename(__FILE__),'wp_mail_smtp_options_page');</code> instead <code>add_options_page(__('Advanced Email Options', 'wp_mail_smtp'),__('Email', 'wp_mail_smtp'),'manage_options',__FILE__,'wp_mail_smtp_options_page');</code> at line 315

Jeremy Zacker at 2011-02-14 01:10:35

I'm getting PHP Fatal error: Call to undefined function wp_mail() in my PHP script I wrote myself. I did not get this error before installing your plugin. Is there something I have to include?

Callum at 2011-04-18 19:16:37

Nobody has ever reported a solution to the problem that I'm aware of. I understand how it appears, you install a plugin, something changes, you uninstall, it doesn't go back. Unfortunately, there's nothing in the code that suggests this is at all possible. What exactly happens when you try to send an email now? Can you see the if the email makes it to the mail log on the machine? Do you know what actual steps are involved in "resetting the folders using PhpMyAdmin"? PhpMyAdmin is a database administration tool, and folders exist on the filesystem. I don't follow the link. There is a variable stored in wp_options that records which plugins are active, but other than that, I'm not sure what the link is.

Ellie at 2011-04-18 19:57:53

I don't know how to see if the email makes it to the mail log on the machine. This is a very new blog (only 4 postings so far, with several comments on each) with no active plugins at the moment (subscribe2 is no longer working, so I have disabled it). I did check about resetting the folders using PhpMyAdmin, but the setting that was active was the one I was to reset to. So nothing to do. Does this mean that I have to reinstall my entire Wordpress installation, do you think? Ellie

Callum at 2011-04-18 23:03:00

If you're willing to give me access to your blog, I'll try to do some debugging for you. I'll send you an email with the info if you want to test. Otherwise, first step is probably to delete wp-content/plugins on the server. If that doesn't help, you might try backing up the database first, then re-installing that. Failing that, you could try wiping the files and database and re-installing from a backup. After that, try exporting all your data under Tools > Export, re-install clean, then Tools > Import.

Todd at 2012-04-23 03:18:26

Hi Callum- I'm building multi-site and per your instructions, pasted your code in my wp-config. I must have missed something simple, because I get this error: Parse error: syntax error, unexpected '@' in /home/academy/public_html/wp-config.php on line 96 I definitely have an @ symbol in my email addresses, so I don't know what it wants. Here's the code snippet from my wp-config file: define(‘WPMS_ON’, true); define(‘WPMS_MAIL_FROM’, ‘myemailaddy@gmail.com’); define(‘WPMS_MAIL_FROM_NAME’, ‘Todd’); define(‘WPMS_MAILER’, ‘smtp’); define(‘WPMS_SET_RETURN_PATH’, ‘false’); define(‘WPMS_SMTP_HOST’, ‘smtp.gmail.com’); define(‘WPMS_SMTP_PORT’, 465); define(‘WPMS_SSL’, 'ssl'); define(‘WPMS_SMTP_AUTH’, true); define(‘WPMS_SMTP_USER’, ‘myemailaddy@gmail.com’); define(‘WPMS_SMTP_PASS’, ‘Password’); Do you know how I can fix that error and successfully use the plugin? -Todd

Callum at 2011-04-08 13:26:23

This has been asked and answered many times before, please search back the history.

Callum at 2011-03-21 23:35:36

There's a long standing "<a href="http://bugs.php.net/bug.php?id=46260" rel="nofollow">issue</a>" in PHP where __FILE__ returns the symlink resolved path, which is usually not desirable. The latest I know is that there's no way to change that behaviour, but somebody suggested ont hat bug using $_SERVER["SCRIPT_FILENAME"] instead. That would be a big change in WordPress though...

Robert at 2011-05-24 23:12:53

ok, so I just sent a contact form using the same account from a zencart form &amp; it worked... Now I am unsure of whats going on...

NicoD at 2012-07-29 21:38:36

Can you tell me what this debug message means? I received it while trying to setup the plugin to work with my GoDaddy hosted website. SMTP -&gt; FROM SERVER:220 p3nlsmtp11.shr.prod.phx3.secureserver.net ESMTP SMTP -&gt; FROM SERVER: 250-p3nlsmtp11.shr.prod.phx3.secureserver.net hello [97.74.24.205], secureserver.net 250-HELP 250-SIZE 31457280 250-8BITMIME 250-STARTTLS 250 OK SMTP -&gt; FROM SERVER:250 ok SMTP -&gt; FROM SERVER:250 ok SMTP -&gt; FROM SERVER:354 enter mail, end with "." on a line by itself SMTP -&gt; FROM SERVER:250 gKdj1j00N4RWBSR01:4GH:Message dropped for spam or virus content

Dave Vinzant at 2011-05-23 15:32:09

I have 3 Wordpress sites running on a single Apache server (Ubuntu 8.04, Apache 2.x, PHP 5.2.4, MySQL 5.0.51). I am running the current version of WP (as of last Wednesday). Each site is in a separate subdirectory (i.e. /var/www/site1/htdocs, /var/www/site2/htdocs, /var/www/site3/htdocs). I am running the default TwentyTen theme on all 3. All 3 sites work flawlessly as far as I can see. I have installed the WP-Mail-SMTP plugin on all 3 servers. I expect these to be low traffic sites and want to get an email when there's a new comment. On 2 of the 3 sites the plugin works great and I get sent email whenever comments are added. On the 3rd site I don't get any email. The 'Email' page in 'Settings' are all setup the same. The 'Test Email' works fine on all 3 sites. I can't imagine that it matters, but the only difference I can see between the sites is that the 2 that work have a 'static page' for their home page and the 1 that doesn't work has a home page that lists recent posts. The problem might be that WP isn't attempting to send the mail or it might be that it's trying and is failing. Is there a way to see a log much like is shown when I send a 'Test'? Any other thoughts?

Urban at 2011-10-16 18:19:32

I am sorry to bother you with seemingly stupid questions... I have spent many hours now trying to setup a couple of multi-sites to do testing with your SMTP plugin and I just want some clarification. Q1: Is the following code the only code needed in the wp-config.php file or do I need to add more than that? Q2: Do I add all the settings in to the wp-config.php file (for a gmail hosted domain) so set up a multisite global mailer? or is there another place? define('WPMS_ON', true); define('WPMS_MAIL_FROM', 'From Email'); define('WPMS_MAIL_FROM_NAME', 'From Name'); define('WPMS_MAILER', 'smtp'); // Possible values 'smtp', 'mail', or 'sendmail' define('WPMS_SET_RETURN_PATH', 'false'); // Sets $phpmailer-&gt;Sender if true define('WPMS_SMTP_HOST', 'localhost'); // The SMTP mail host define('WPMS_SMTP_PORT', 25); // The SMTP server port number define('WPMS_SSL', ''); // Possible values '', 'ssl', 'tls' - note TLS is not STARTTLS define('WPMS_SMTP_AUTH', true); // True turns on SMTP authentication, false turns it off define('WPMS_SMTP_USER', 'username'); // SMTP authentication username, only used if WPMS_SMTP_AUTH is true define('WPMS_SMTP_PASS', 'password'); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true Thank you very much for your time.

Callum at 2011-06-27 11:04:24

This has been discussed many times. I think it's better to have the password in plain text to avoid any illusion of security where none exists.

Lawrence Fox at 2011-09-18 03:44:05

Love the plugin. I have one minor problem. I've set up a "from" and "from name" in the plugin's control panel, but if I try to send mail from my functions.php, the following code works fine: $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=".get_bloginfo('charset')."" . "\r\n"; and the mail gets sent using the "from" info from the plugin control panel. But if I add one more line to the functions.php script: $to = $email ; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=".get_bloginfo('charset')."" . "\r\n"; $headers .= "From: Website Membership Team" ."\r\n"; No mail gets sent. What am I doing wrong? Lawrence

Callum at 2012-11-08 13:48:22

I don't recall any reports of similar issues. Not sure what would be causing that. Probably an issue with an SMTP server or server config somewhere. Have you tried other SMTP plugins? Some of them use their own SMTP mailer while this one only enables functionality which is included with WordPress.

Callum at 2011-05-13 18:15:15

I'm not familiar with that plugin, so I don't know how the two will interact.

Callum at 2011-11-06 14:41:13

I believe Gmail will only accept mail through SSL. Has your host enabled SSL in the PHP settings?

Bri at 2011-03-27 16:51:45

I have yet to contact the developer of Contact Form 7. I don't know if I have SSH access to the server. I don't know why the same GoDaddy settings that seem to work for others don't work for us. At this point, I'm more concerned about why Contact Form 7 worked before I installed WP-Mail-SMTP but doesn't work when I set "Use the PHP mail() function to send emails" or even when I uninstall WP-Mail-SMTP. Can WP-Mail-SMTP be changing something that isn't undone when it's uninstalled? -Bri

Callum at 2011-03-27 15:23:56

Do you have SSH access access to the server? You could try testing it that way. If GoDaddy can't tell you what server settings should work, or what they're telling you isn't working, I'm not sure what to suggest. As for Contact Form 7, I've seen a few reports of issues between the two plugins recently. I'm not sure what's causing it. I'll try looking into the WP Contact Form 7 code a little more, but as I recall, there's an awful lot of it! Has the Contact Form 7 developer shed any light on it from that side?

Callum at 2011-03-12 11:59:29

Aha, ok, thanks for letting me know. :-)

Gijs at 2011-02-01 16:02:24

This is what happens: 1. I fill in the From Email: norepy@example.com 2. When I recieve the mail the address is shown as: noreply@www.example.com 3. And the From Name doesn't correspond to what I 've entered, changing the value doesn't take effect. ( I am however able to adjust the From Email address ) I'm using the php mail() function to send out the mails. Hope this clarefies the problem or perhaps you can spot what I'm doing wrong. Cheers

Callum at 2011-02-01 14:35:36

I don't understand your bug report. Can you describe what steps you take to produce the error, and the details of what error you're seeing?

Donald Jenkins at 2011-03-12 04:35:56

She was actually only thanking you, not asking any questions :)

Callum at 2012-06-12 20:06:30

The plugin doesn't change the reply-to address. I'd guess the issue lies in whatever plugin / code is generating the emails.

Callum at 2012-06-12 20:08:56

I'm sorry, I don't understand what your issue is. Is this in reply to an earlier comment? If you use the "reply to" links then I'll see earlier messages. Using sendmail is not the same as using SMTP, so it sounds like your host has given you conflicting information in the same message.

Callum at 2011-02-02 16:56:19

Those settings don't generally work unless you send mails via SMTP. Using PHP's mail() the server will usually override whatever you put as the from address anyway. I don't think this is a bug with WordPress or the plugin but the reason I wrote this plugin initially, because sending email via mail() is so disappointing on most web hosts.

Gyurci at 2011-09-19 15:59:36

Hi, I have installed only Your plugin, configured smtp and I can send e-mails, but I don't know exactly which is the correct name in Your plugin for the mailer. object(PHPMailer)#278 (53) Is it correct? Is it not the standard PHP Mailer just with smtp? Best regards, Gyurci

BrotherLeaf at 2011-09-19 15:22:05

I would think it is something on my host (godaddy) because I cant even use it if try to use my gmail account with smtp.gmail.com and my password. I get this: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) SMTP Error: Could not connect to SMTP host.

BrotherLeaf at 2011-09-19 15:11:08

Hi Callum, I'm getting this error when testing the plugin: ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; and SMTP -&gt; ERROR: Failed to connect to server: No route to host (113) SMTP Error: Could not connect to SMTP host. What could be wrong? I'm using the smtp server that my hosting company gives me. Thank you!

alex at 2011-03-09 16:56:08

Hello Callum, Thanks so much for the quick response and for taking the time to create a development release. I am able to send email via SMTP and PHP mail however if using PHP mail and putting a check in the Return Path check box I still receive an error. This isn't a huge deal for me but I wanted to point it out. I should note that my return path is forced in my Apache virtual host configuration as displayed below. *************** php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@example.com" *************** Thanks again for the quick and helpful response. Thanks. alex

Callum at 2011-05-14 01:36:04

Next step is to check the mail logs on the smtp server. The mail was successfully delivered and accepted, so the plugin and WordPress are working as expected.

Callum at 2011-05-14 01:44:59

I don't know what to tell you Bob. According to the test you ran, the plugin is working fine and wp_mail() is sending via SMTP. I'd suggest the issue lies in the code / theme / plugin that you're using. I suggest going back to that side now that you have the correct password. Please note you pasted your password as part of the debugging output in plain text, so it's now visible here. I recommend changing it immediately.

Bob at 2011-05-14 01:33:48

Let me rephrase that, I got the Test email but am not getting all the Registration emails and purchase products emails. Bob

Callum at 2011-11-25 13:03:03

I'm not sure what to suggest in this instance. Has something changed on the server? Have you upgraded WordPress, another plugin? Has anything changed on the mailserver end? That error usually means that either the mailserver is invalid, or PHP doesn't have permission to connect to remote hosts.

Callum at 2011-11-25 13:22:09

That message is a little misleading. It's generated <a href="https://core.trac.wordpress.org/browser/tags/3.2.1/wp-login.php#L234" target="_blank" title="wp-login.php line 234" rel="nofollow">here</a>. It means that WordPress was unable to send the recover password email. Are you able to send a test message to the same address as the recover password message is being sent to?

Callum at 2011-11-25 13:18:13

It sounds like there might be a conflict between the plugin and something else you have installed. I'm not sure what would cause that though, every function definition is wrapped in conditional tags, so it seems unlikely that the plugin would conflict with something else. If you manage to figure out what the issue is, would you be so kind as to post back here?

Greg Daniels at 2011-01-17 22:57:20

I'm not really sure how to implement the feature code-wise but I would imagine it being useful for when you have multiple email sources from a contact page drop down box. For instance: I have example[at]onewebsiteplease.com, example1[at]onewebsiteplease.com, example2[at]onewebsiteplease.com In a contact form 7 drop down box. When one is selected and the form is completed, contact form 7 sends an email from any one of those addresses to the sender to confirm receipt and include any additional info. Currently, I can only send SMTP email from one of those addresses.

Robert at 2011-05-24 21:37:46

wow, sorry, I forgot to paste the result code... Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#345 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(21) "***@*******.com" ["FromName"]=&gt; string(4) "RobR" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(41) "WP Mail SMTP: Test mail to ***@*******.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(21) "***@*******.com" ["Password"]=&gt; string(8) "***************" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#211 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(111) ["errstr"]=&gt; string(18) "Connection refused" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(14) "***@*******.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_71a0d2042be594f6074dcd4e47219acc" [2]=&gt; string(35) "b2_71a0d2042be594f6074dcd4e47219acc" } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Robert at 2011-05-24 21:36:36

Hello, First let me start by saying Thank you for this plugin, its great! I have been using it for about 2 months &amp; it was working great, then it suddenly stopped. My hosting is with GoDaddy on linux im using a business gMail account, the same email address that I used for this posting. I have all the correct settings, like I said it was working. smtp.gmail.com , 465, ssl, auth, username &amp; password... So it stopped working on 3 sites I have, with all 3 differnt email accounts on 3 differnt domains. I know the problem is NOT with your plugin, it must be with GoDaddy blocking something. im just wondering if you know about it &amp; if there is any kind of work around? Thanks

Callum at 2012-07-30 10:46:01

This is the relevant section "Message dropped for spam or virus content". I'd suggest asking GoDaddy if it's their SMTP server you're using.

MARK ROWE at 2011-02-19 23:36:49

Hi Mate. Thank you for the support and the great plugin in. The issue i am having is this: I am using a normal pop email account to test the emails. When i test send to one of my pop accounts it works but when i test send to any of my gmail accounts the emails never arrive. Why is that? I get emails all day in my gmail accounts but for some reason the test send does not work for them. Please assist.

Callum at 2011-03-23 22:57:56

Where are you seeing that error message? Do you have any plugins running that might affect password recovery? I'm not sure what to suggest, it's not an issue I remember seeing before.

Nandi at 2011-01-02 17:37:11

Here's what you'll need to do for GoDaddy: Enter From E-mail and Name Mailer: Choose Send all WordPress emails via SMTP. SMTP Host: relay-hosting.secureserver.net Port: 25 No Encryption No Authentication Conduct a test e-mail and it should work. ;-)

Andy Daniel at 2011-08-20 00:59:26

Thanks so much for your help. I upgraded to WordPress 3.2.1 and it now works beautifully!

Jeffrey at 2011-02-22 19:20:57

I’ve a question about your wp-mail-smtp plugin which I use together with my Google Apps account. It works for me but there is a problem with the performance: Sending a mail needs more than 2 seconds. So if a person comments on my blog it’s very slow because of the comment notifications which send mails to the other people who commented on the article. Is there a way to speed up the plugin? Maybe with query for all mails?

Callum at 2011-02-22 22:25:35

The plugin doesn't send emails, it only tells WordPress to use SMTP to send emails. The PHPMailer class is shipped with WordPress, so the plugin has no effect on the speed of sending emails, except that sending by SMTP might be slower on your server than sending through PHP's mail() function. You might look at other SMTP plugins, maybe they queue the message for sending later, I'm not sure. There's no way to achieve noticeable performance improvements within the scope of this plugin.

Callum at 2011-03-20 10:24:39

The change you proposed doesn't make sense. As far as I can see, since WP version 2.5 or before, that value has been passed through plugin_basename() anyway, so doing it twice shouldn't make any difference. Can you share the errors or problem behaviour you're seeing?

Callum at 2011-03-10 11:57:31

I'd guess that setting the return path causes an error on your PHP setup. At least now with the checkbox option it's easy to disable it. Previously I had it always turned on, which is why you were seeing errors before I think. Thanks for testing the code, I'll do some further testing myself and release shortly. :-)

alex at 2011-03-10 12:53:17

Hello Callum, Absolutely. The current method of being able to disable the return path works for me. Happy to test the code... if there is any other testing I can do just let me know. Thanks. alex

MARK ROWE at 2011-02-21 16:27:58

I am able to receive emails direct from my pop accounts to my gmail accounts.

bob at 2011-05-14 22:15:15

Good Afternoon Callum, Thanks for all the help on the plug-in. I will move to the next area and see what we find. Thanks again, Bob

Callum at 2011-02-21 16:35:21

I'm sorry but I'm not able to help you any further. Without answers to the specific questions I'm asking, I don't know what to suggest. I recommend you find somebody who understands the SMTP protocol and can help you to investigate where the emails are getting stuck. You may also want to try another SMTP plugin, I believe there are a couple of popular ones. The WP Mail SMTP code only leverages functionality built into WordPress, it doesn't actually get involved in the sending of emails. From what you've described, the plugin is working as expected and the issue lies elsewhere.

MARK ROWE at 2011-02-21 16:42:42

I have looked here http://wordpress.org/support/topic/registertion-verification-emails-blocked-by-yahoo-hotmail-aol-amp-gmail?replies=6 and awaiting a reply from MY host. Hope this works cos it appears to be a wider issue with WP blogs. Thank you for your assistance so far!

Juergen at 2011-04-05 19:13:15

Hello, Callum, I have programmed a plugin for mailing users and groups. (http://wordpress.org/extend/plugins/emu2-email-users-2/) - It is still beta, though it is working fine. Except for the following: Some users (not me) using your WP Mail SMTP plugin together with my plugin get into trouble. They can't send mails anymore. Maybe you can help me. At the end my plugin comes to this line of code: wp_mail($to_address, $subject, $mailtext, $header); I am including sender's name and address in the from section of the header. Could this lead to trouble? Jürgen

Callum at 2011-10-28 11:11:18

I recommend contacting your mail server administrator. I'd guess that you're not using authentication (username and password) when you might need to be.

MARK ROWE at 2011-02-21 16:23:44

I went to one of my other wordpress setups and registered there using a gmail account and a pop account. The gmail account did not get the email with the password, but the pop account did. That WP does not have WP Mail SMTP installed. Its running native.

Callum at 2012-04-20 22:02:01

What port are you using? Some hosts filter outgoing traffic on port 25 to avoid spamming. If you're specifying gmail's smtp port, I can't think why the traffic is ending up on a different server. Have your hosting provider had anything useful to say?

Bart at 2012-04-20 22:25:52

port 465. I am using exactly the settings of what Google (and others) prescribe for smtp. The host sadly gives me the closed door treatment... "Assistance with script / development related issues isn't something that we offer" Which stinks as I believe it is related to the SPF that I temporarily turned on.... It appeared to have stopped working right then. Sorry to be knocking on your door with this but I hoped you had seen this before. Btw I did obviously test SMTP with same logon credentials via thunderbird client. And lastly WOW you are fast with your responses ;-)

Callum at 2012-04-20 22:31:22

Can you connect to this server over SSH? If you can, you could try connecting to the gmail smtp server and see if the connection is intercepted by your host. Likewise, you could verify that DNS is giving you valid entries on the server. You could try connecting to the server with the command <code>`telnet smtp.gmail.com 465`</code> if telnet is installed. If you want to ask your host, rather than describe the problem, you could simply ask "Does my hosting have unrestricted access to outgoing connections on ports 25 and 465?" Hopefully they'll give you a straight answer on that, which tells you if they're deliberately messing with the connection or not.

Callum at 2011-02-21 15:26:00

You cannot send mail through a POP account. Can you successfully send an email to gmail through the same SMTP server that WordPress is configured to use? Are you using the same username and password?

Callum at 2011-01-04 14:14:54

This is the most commen error which is discussed on the <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" rel="nofollow">plugin</a> page. I won't go into it further here.

Callum at 2011-01-05 18:55:00

If you put one email in the to, are any of the CC or BCC values picked up? From looking at wp_mail(), it seems like CC and BCC values should be picked up and handled properly. It sounds like you're working on it at the moment. If you feel like you've run out of ideas in 24 hours or so, let me know, and I'll see what I can do to help then.

Pippin Williamson at 2011-01-05 18:56:41

That's what I just tested. It didn't work. I put one address in the "to" and others in the "CC". No luck. I also tried BCC.

Pippin Williamson at 2011-01-05 18:34:57

Update: your plugin is working, mostly. I just found part of the problem to in that I wasn't providing a "to" address, but instead was providing all the addresses through BCC. It works fine if I put all the addresses into the "to" parameter, but it won't include any CC's or BCC's. Any ideas?

Pippin Williamson at 2011-01-05 18:28:04

wp_mail() gets called when a post is published using the 'new_to_publish', 'draft_to_publish', and 'pending_to_publish' hooks. I tried the other plugin, and it doesn't work either (though the test email does). Here's the call to wp_mail and it's settings: <code> $headers .= "From:" . strip_tags(get_option('pn_from_name')) . "\r\n"; $headers .= "Reply-To:" . get_bloginfo('admin_email') . "\r\n"; $headers .= "BCC:" . $recipients . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; // if there are any posts published today, send the email if ( $post ) { wp_mail($to, $subject, $message, $headers); } </code>

Callum at 2011-01-05 18:19:40

Happy to try and help debug. What leads you to believe that WP Mail SMTP isn't firing on calls to wp_mail() from Post Notify? Where in the WordPress bootup are you calling wp_mail()? I don't think it's instantiated before plugins are loaded, so I don't think it's possible to call it before WP Mail SMTP affects it, but that's where I was going... There's a plugin called Configure SMTP that does something similar, you could test with it, does it work?

Pippin Williamson at 2011-01-05 18:09:31

Hey, I'm trying to use your plugin in conjunction with one of my own plugins. My plugin, (<a href="http://codecanyon.net/item/post-notify-wordpress-email-notifications/134042?ref=mordauk" rel="nofollow">Post Notify</a>), is using the wp_mail() function to send emails to subscribers. I've set up your plugin with my gmail account and the test email worked fine, but it doesn't seem to work for the wp_mail() function called in my plugin. Can you help me sort it out? Thanks

Alex at 2012-02-17 10:27:02

Thank you for your answers! I will try some workarounds. Cheers, Alex

Mark at 2011-02-13 05:47:57

oddly enough, an update of my database from production (this test of your plugin is on a non-production box) and a uninstall and reinstall of your plugin fixed the issue. It is now working.

Callum at 2011-04-17 22:50:47

When a new user publishes a post, you send email notifications. You'd like those notifications to be sent from the name and email address of the post's author, is that correct? I think the best place to achieve that would be in the plugin that sends out the notifications. You could easily add a from header there, and then WP Mail SMTP will leave the from details unchanged. Otherwise, you can't be sure the logged in user will be the "current" user when the notifications are sent. For example, if a post were published in the future, or in other edge cases.

Callum at 2011-04-17 22:55:10

The plugin sets some values in wp_options which you could remove. Other than that, having deleted the files, there's no way at all for WP Mail SMTP to affect how emails are sent out. A quick scan of the WordPress codebase suggests none of these options would interfere with WordPress and its sending of mails. I've had other people report similar issues, so if you find a solution, I'd be very interested to hear about it. I'm baffled as to what's going on. I can send you some debugging suggestions by email if you like.

Stephen Connolly at 2012-01-03 12:12:34

Hello Callum, I'm working on a website for a client and I am using your plugin. On my main contact form it works with no issues, I also have a quick contact form in my footer (its a widget). Looking at the source code for the widget, I noticed it was using the mail() function so I changed this to use the wp_mail() function instead as suggested above, but I still can't send any email from the quick contact form. Any suggestions. Regards, Stephen

jamie gerig at 2011-10-06 06:14:33

Sorry Callum. I didn't mean to be rude. I just wanted to let you know I'm lost when it comes to code. Sorry.

Callum at 2011-04-04 12:22:16

Are you using constants to set the variables? Is it a WPMU installation or WP MultiSite? If you only want to change the sender's name, you could rip out almost all the code except that one function. As far as I'm aware, WP Mail SMTP only works in mu-plugins or on MultiSite with the options set as constants. Otherwise, you'd have to set the options on every individual site by hand as they're stored in wp_x_options.

Andy Barratt at 2011-06-25 23:45:14

This has been a life saver however, the first thing I did was change line 301 so that the input field type is "password" rather than "text." Just not so keen on the idea of people looking over my shoulder being able to see my password unmasked, perhaps worth doing this in your next version?

利用SMTP发送Email | 王威的博客 at 2011-07-31 17:33:52

[...] 为了终结这种悲剧,为了能顺利启用wordpress自带的邮件功能,我折腾了半天,终于通过WP-Mail-SMTP插件实现了。原理就是利用SMTP协议,让我的小博利用我邮件的SMTP服务来发邮件,这样就和空间无关了。当然,也可以直接修改wordpress的wp_mail()函数来实现SMTP发送Email。很明显,后者需要一定的PHP功底,目前我只能imagine.这里我就分享一下小博WP-Mail-SMTP的实现过程: [...]

Callum at 2011-06-10 14:06:24

The password masking has been discussed before. It's an illusion of security, the data is still readily available to any admin on /options.php. I prefer to have it in plain text and visible so that people understand the lack of security. I'm happy to look at the reply-to change you mentioned. Do you have a patch I can see?

WangWei at 2011-07-31 14:46:52

OK.The problem have be solved when I changed my user email.It means the email to send and the email to recieve can't be the same one when the plugin is working.

Callum at 2011-08-10 17:50:48

There some documentation <a href="http://codex.wordpress.org/Editing_wp-config.php" target="_blank" title="Editing wp-config.php" rel="nofollow">here</a>.

Deon at 2011-08-10 15:01:01

Hello, I installted your plugin on my multisite network and it works great for each site. You recommend entering the smtp settings into wp-config so that they are applied across the network. However am unfamiliar with editing that file. How should I got about inputting the settings? Thanks

Phil at 2012-04-25 07:43:01

Hi, I have been using smtp mail on my wordpress sites ever since my host disabled php mail on the server. however I have never had the need for people to register to the site until now. The problem I have is that i have the smtp mail set up and working. contact form 7 works and the test email option in the wp-smtp mail setting page also works, however, when a user registers, the email with password is not sent, in addition when using the password recovery it throws the following message: your host may have disabled the mail() function which I know about but I thought this plugin bypasses all wordpress using this? Hope you can help. Phil

Jeffrey at 2011-02-23 16:51:23

Thank you for your fast reply and your help! So I will check for an other solution to solve the performance problem.

Callum at 2011-05-19 09:27:30

This is the most common error message, it's the first error on the <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" title="WP Mail SMTP plugin" rel="nofollow">plugin page</a>. I don't have anything to add to what I've written there.

Ellie Kennard at 2011-04-18 01:20:08

Thanks Callum. That is worrying. Before I found your blog I asked on the WP forum and this was a reply I got a short while ago: "Have you tried resetting the plugins folder by PhpMyAdmin?" Can you think of any way that might help? Otherwise, how and where would I change (and what) in the wp_options? Cheers! Ellie

Mike at 2011-04-01 21:56:32

Hi Callum, Is this still an issue? I ask because I experienced the same sort of problem on my WordPress MU installation (non subdomain). I am using a form plugin (<a href="http://wordpress.org/extend/plugins/tdo-mini-forms/" rel="nofollow">TDO Mini Forms</a>) that uses the wp_mail function to send both a confirmation email to the submitter as well as a request for moderation email to the admin. I installed and network activated your plugin because I wanted to change the "from" name from the default of WordPress to the site name. I am not using the smtp functionality. Your plugin sends it's test email successfully. Both form emails go out successfully from the main site, with the site name as the from name, but on a sub site only the confirmation email is sent. The request for moderation email just disappears. I have gone through the plugin's code and dumped the variables it's sending to wp_mail. They are correct and identical between the main site and the sub site for both types of emails. wp_mail returns true for both emails from the main site but only returns true for the confirmation email from the sub site. It returns nothing (I don't know if that means false or it's just nothing) for the request for moderation email from the sub site. The method that the plugin is using to send to wp_mail is a little different between the function that sends the confirmation email (which works on the sub site) and the function that sends the request for moderation email (which doesn't), so just for grins I changed the method of calling the wp_mail function for the request for moderation code to mirror the confirmation code with the same result: everything works fine on the main site, and only the confirmation email works on the sub site. The only reason I think it has anything to do with your plugin is, as a last ditch effort, when I deactivated it everything went back to working as expected, albeit with WordPress as the sender of the emails. Any thoughts? I'm happy to debug. Regards

Sanjeet at 2011-07-28 04:49:29

After I installed the plugin in wordpress. I did not do any changes in the contact form, if thats what you meant by "you can check the code to see how the contact form plugin is sending email"

Callum at 2012-02-25 12:48:36

For somebody to help you, you would need to tell them what is wrong. Simply saying "it does not work" gives one absolutely zero to work with. Please remember when asking for support of this kind that I wrote and published this plugin for free, and any support I provide is also free, in my own time. Approaching open source software with the attitude that you are being given a generous gift, without charge, will, in my experience, smooth your transactions.

Kevin at 2011-06-10 04:41:14

Thanks for the great WP Mail SMTP plugin! It's incredibly useful on my small VPS where a full blown mail server isn't exactly viable. I thought I'd share a couple features I've added to the plugin that you may consider pulling into the official version: <blockquote>Mask the password within a type=password field and don't populate the field with the existing value. I know this doesn't add a tremendous amount of protection, but my sites have a few admins and it keeps my SMTP details well hidden.</blockquote> <blockquote>Allow a reply-to address field. When sending emails over SMTP via Gmail's servers, the address of sender's inbox is used for the "From" address instead of the one specified in the email headers (unless that Gmail inbox has verified the email for "send as").</blockquote>

Branda at 2012-02-25 13:21:47

Well, I thought I had explained everything on my original message. I know that your plugin is free and that you have nothing to do with my problem. Since nobody was able to figure out what was going on, I thought I would ask you for some help, but sorry for bothering you. I read all of my previous messages above and I sincerely cannot see what made you so upset. I asked for help, because I and the programmers I asked don't know what's going on, that's all. I won't bother you anymore.

Sanjeet at 2011-07-28 03:29:21

I am using the wp-mail-smtp plugin for the contact form. Let me explain to you in a better way...I have installed wp-smtp-email plugin. I have filled in my smtp details and I have checked the box which says - use php mail to send email...and when I send the test email, it sends successfully. No matter to which email id I send the test email, it sends the email. Now I go to the contact page, fill in all the details and hit submit button. It says "failed to connect to mail server" . The contact form uses this function "$emailSent = ( @wp_mail( $email_address_to, $subject, $message_contents, $header ) ) ? true : false;"....

Romeo Adrian Cioaba at 2011-07-27 22:44:58

Hi, I've added a new field to the admin page, so that mails sent use a custom mail header. Is there a svn/github repo for the project where i could contribute the changes? If it helps anyone, here is the diff: 51c51,52 '' --- &gt; 'smtp_pass' =&gt; '', &gt; 'smtp_custom_header' =&gt; '' 149c150 $phpmailer-&gt;AddCustomHeader(get_option('smtp_custom_header')); 303a305,310 &gt; <!-- Custom mail header start --> &gt; &gt; &gt; &lt;input name=&quot;smtp_custom_header&quot; type=&quot;text&quot; id=&quot;smtp_custom_header&quot; value=&quot;" size="40" class="code" /&gt; &gt; &gt; <!-- Custom mail header end --> 456a464 &gt;

Callum at 2011-07-27 17:53:37

What plugin are you using for your Contact Form? If you're getting all emails except from the form, the problem probably lies there. If you are familiar with PHP, you can check the code to see how the contact form plugin is sending email. If it's using the mail() function, you can usually just add a wp_ in front, to make it wp_mail() and that will often "just work".

Bart at 2012-04-22 14:26:23

Hi Callum, I used your pastebin to get you the test mail output. (hope this reaches you if not I have the url) I did turn off all plugins and re-did the test. -same results- I very much appreciate your help on this one! Bart

Charles Johnson at 2012-03-21 23:30:32

Thank you so much for this plugin! I'm trying to get it working in multisite, and I see in the notes that you recommend setting the values in wp-config.php for multisite installations. What exactly are the names of the variables I should set in order to configure this properly via wp-config.php?

WangWei at 2011-07-29 01:09:12

No,when I try the “forgotten password” process,I could't recieve any email.It says the mail() was forbiden.

Gioele at 2011-05-13 15:17:56

I want to use your plugin in conjunction with this: http://wpplugins.com/plugin/76/wordpress-mail-queue-wpmq/ they both rewrite wp_mail(). How can I make this happen? Thanks!

Bri at 2011-03-26 22:38:41

Hi Callum. I'm using WP-Mail-SMTP on a GoDaddy account. I'm using settings that others have apparently gotten to work (smtpout.secureserver.net, port 80, no encryption, authenticated using an account name and password that I've previously set up on our domain). I'm getting the following output at the bottom when I send a test e-mail: SMTP -&gt; FROM SERVER: SMTP -&gt; NOTICE: EOF caught while checking if connectedSMTP -&gt; ERROR: AUTH not accepted from server: (this is how the output appears in WP-Mail-SMTP, including the apparent missing return after the word "connected"). I haven't seen any mention of the "EOF" error on your blog or on the Wordpress support site. Any idea what might be going wrong? Thanks for your help! -Bri

Callum at 2011-03-27 03:28:40

The server is telling you it doesn't accept authentication. As I understand it, you don't need to authenticate to that server, it will relay based on your IP. If you're on a GoDaddy server, it'll send your mail, if not, it won't. Also, I wasn't aware that it was port 80, I thought it was port 25, but I could well be wrong, or maybe it works on both. :-) Try turning off authentication and let me know if you have any further issues.

Olutaller at 2011-09-23 19:27:03

Hi Calum, bool(false) The full debugging output is shown below: object(PHPMailer)#33 (45) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(25) "mail@signalxchangeinv.com" ["FromName"]=&gt; string(26) "Signal Exchange Investment" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(46) "WP Mail SMTP: Test mail to xxxxxxx@xxxxx.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(25) "xxxxxxxl@xxxxxxx.com" ["Password"]=&gt; string(9) "mail@2011" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#34 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; bool(false) ["error"]=&gt; array(3) { ["error"]=&gt; string(27) "Failed to connect to server" ["errno"]=&gt; int(10060) ["errstr"]=&gt; string(185) "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. " } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(19) "xxxxx@xxxx.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_2cd63f61b625f4a38647b327586e1b70" [2]=&gt; string(35) "b2_2cd63f61b625f4a38647b327586e1b70" } ["language"]=&gt; array(13) { ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(55) "You must provide at least one mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["recipients_failed"]=&gt; string(56) "SMTP Error: The following SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) Please above is error code, I have contact my host on the problem that I'm having wp-smpt plugin with google apps below is their response, I will be glad if you could advise on what else to do because wp-smpt plugin works well with mail account hosted on my host server. "We are sorry that our previous response did not take into account that your domain emails are not hosted at Utiware. Because you are using Google for your Domain Email, our Utiware SMTP Email Server will not recognize your domain as a valid domain. So, you must also use the Google SMTP server for sending emails from your website. That is how it should work. Please consult the Google documentation for how to use their SMTP Server in your Wordpress website. Thank you very much for choosing Utiware Web Hosting." Kind regards, Olutaller

randall at 2011-05-20 22:58:11

Hi Callum Having some weird site issues that I was hoping you could help with. Let me start off first by saying this has nothing to do with your plugin...It seems to work fine. In fact it works on one page of my word press site, and not another page. Seeing that you are a Word Press expert...I was hoping you could help me out. I can pay you for your time if necessary. If you look at the index page for the following site http://www.earlygrind.com/ there is a small contact form just above the footer. I am using Contact Form 7 for this contact form. You will see that this contact form works fine. Now...If you look at the contact page for the same site http://www.earlygrind.com/?page_id=57 there is a similar contact form. I am also using Contact Form 7 for this contact form. You will see that this contact form does not work. I am literally stuck. I am not a developer, and will not be able to debug this word press site. I am really hoping that you might be able to lend your advise. Thanks...Randall

Bri at 2011-03-27 13:38:04

Callum, thanks for your reply. I've tried it with authentication and without. If I don't use authentication, I get the "failed to connect to server" error. I've tried both relay-hosting.secureserver.net (which supposedly doesn't require authentication) and smtpout.secureserver.net (which supposedly does). I've tried ports 25, 80, 3535, and 587 (all of which the GoDaddy technician tells me should work). I've tried every combination. If I use any combination other than the one I'm using here, I get this: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) I also have another problem. Before installing WP-Mail-SMTP, Contact Form 7 worked, but now it doesn't. If I select "Use the PHP mail() function to send emails" Contact Form 7 still doesn't work. If I try to send a test e-mail in WP-Mail-SMTP using this option, my browser looks like it's loading for 30 - 45 seconds and then it finally stops with a blank page. Even if I deactivate and uninstall WP-Mail-SMTP, Contact Form 7 won't work. So if I'd like to get SMTP to work, but if I can't get SMTP to work I would at least want to set it back to how it was before so that Contact Form 7 will work again.

Callum at 2011-11-10 14:11:55

Patches are greatly appreciated, email is good, the word me at this domain will reach me. :-)

Callum at 2011-09-30 14:31:38

To the best of my knowledge, a FROM header must be in the format "From: name" or "From:email", but to omit the email is not possible. I'd guess that's why mails are failing to send.

Callum at 2011-09-30 14:32:51

This is the most common error and it's documented on the <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" title="WP Mail SMTP" rel="nofollow">plugin page</a>.

Callum at 2011-09-30 14:33:29

I'm sorry, I don't understand your question. Can you explain your request in more detail to me?

Callum at 2011-09-30 14:34:49

I don't have experience with this. However, I am talking to another person about developing a plugin that would digitally sign emails. They have offered to fund some of the development. Would you like to join that discussion?

Callum at 2011-09-30 14:37:10

I'd guess the problem relates to PHP's fopen() settings. This is the most common error reported. I recommend using your Google mail settings and then asking your hosting company again. As far as I am aware, Google only accepts mail via SMTP, so it's necessary that your PHP host support fopen() and encrypted connections.

Grant at 2012-02-17 15:11:54

The following is what I get. I hope you don't mind, i Xed out the emails and IP for our SMTP server. Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#213 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(79) "The following From address failed: XXXXXXXXXX@XXXXXXXXXXXXXXXXXX.com" ["From"]=&gt; string(44) "XXXXXX@XXXXXXXXXXXXXXXXXX.com" ["FromName"]=&gt; string(9) "WordPress" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(56) "WP Mail SMTP: Test mail to XXX@XXXXXX.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(9) "XXX.X.X.X" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp:private"]=&gt; object(SMTP)#214 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn:private"]=&gt; int(0) ["error:private"]=&gt; array(1) { ["error"]=&gt; string(37) "Called Mail() without being connected" } ["helo_rply:private"]=&gt; NULL } ["to:private"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(29) "XXX@XXXXX.com" [1]=&gt; string(0) "" } } ["cc:private"]=&gt; array(0) { } ["bcc:private"]=&gt; array(0) { } ["ReplyTo:private"]=&gt; array(0) { } ["all_recipients:private"]=&gt; array(1) { ["XXX@XXXXXXX.com"]=&gt; bool(true) } ["attachment:private"]=&gt; array(0) { } ["CustomHeader:private"]=&gt; array(0) { } ["message_type:private"]=&gt; string(5) "plain" ["boundary:private"]=&gt; array(2) { [1]=&gt; string(35) "b1_b8dd1d60d3991bc3835a0e8f2734d7d4" [2]=&gt; string(35) "b2_b8dd1d60d3991bc3835a0e8f2734d7d4" } ["language:protected"]=&gt; array(17) { ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_error"]=&gt; string(19) "SMTP server error: " ["empty_message"]=&gt; string(18) "Message body empty" ["invalid_address"]=&gt; string(15) "Invalid address" ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count:private"]=&gt; int(1) ["sign_cert_file:private"]=&gt; string(0) "" ["sign_key_file:private"]=&gt; string(0) "" ["sign_key_pass:private"]=&gt; string(0) "" ["exceptions:private"]=&gt; bool(false) } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: SMTP -&gt; NOTICE: EOF caught while checking if connectedThe following From address failed: XXXXXXX@XXXXXXXXXX.com

Janice at 2012-04-21 17:12:34

I am using the Contact Form 7 plugin with your SMTP config plugin. I have use this plugin to send email via Gmail. When I sent a test email, it worked But when I use actual contact form from website, it has an error message saying"Failed to send your message. Please try later or contact the administrator by another method." I'm a newbie in wordpress and not a programmer so please be patient with me. Thank you so much for your time and help.

Haroon Hameed at 2012-01-02 10:32:53

Hello Callum , I just installed your plugin as well and I am receiving this error from Post 25 as well so please can you help me out. The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111) SMTP Error: Could not connect to SMTP host.

Callum at 2012-04-23 12:24:16

The code you pasted appears to use backticks ` instead of quotes (single ' or double "). Is that the issue? If you switch them all to single quotes, does it work? How did you copy / paste into wp-config.php? The code in the plugin file should not contain backticks, but maybe if you pasted somewhere else and are on Windows, the quotes got switched.

Callum at 2011-06-04 10:26:41

Thanks for sharing. :-)

Jan at 2012-05-07 13:25:16

Your plugin worked fine yesterday and I could send emails from localhost to my email accounts. Today I have the plugin "Fast Secure Contact Form" installed and emails are not sending anymore. The plugin "Fast Secure Contact Form" is removed, but I still get the ERROR: “The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (115825824) SMTP Error: Could not connect to SMTP host. ” How can I configure the email in PHP, to send email from youw plugin and mijn emailform?

michael at 2012-02-16 20:39:01

Just read through the comments on this page, please point out where I missed it.

Alex at 2012-02-16 20:27:26

Hi Callum, First of all thank you for your great plugin! Great job! Second of all, here comes one tiny issue - I think Google considers me as spammer for emailing way too many automated notifications about new comments on my blog via GoogleApp email account. Maybe I am doing something wrong. But I get such replies on outgoing comment notifications (use Comment Notifier by Satollo): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Delivery to the following recipient failed permanently: address@mail.com Technical details of permanent failure: Message rejected. See http://support.google.com/mail/bin/answer.py?answer=69585 for more information. ----- Original message ----- Received: by 10.152.132.130 with SMTP id ousdada11f4564346313294459862804; Thu, 16 Feb 2012 09:24:42 -0800 (PST) Return-Path: Received: from germanblog.ru (server.xxx.com [111.11.11.11]) by mx.google.com with ESMTPS id w1s45343fblbq.13.2012.02.16.09.24.41 (version=SSLv3 cipher=OTHER); Thu, 16 Feb 2012 09:24:41 -0800 (PST) Date: Thu, 16 Feb 2012 17:24:41 +0000 Return-Path: email@germanblog.ru To: address@mail.com From: "Germanblog.ru" Subject: =?UTF-8?B?0J3QvtCy0YvQuSDQvtGC0LLQtdGCINC90LAg0LLQsNGIINC60L7QvNC80LU=?= =?UTF-8?B?0L3RgtCw0YDQuNC5IHwgR2VybWFuYmxvZy5ydQ==?= Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/html; charset="UTF-8" _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Everything else (Contact Form 7, test emails) works perfect. Only hundreds of comment notifications are not being delivered. Many thanks in advance! Alex

michael at 2012-02-16 20:33:14

In the setting field can you please set the password field to be "password" type? I dont want my clients to be able to see my google password. Thank you.

Callum at 2012-02-16 20:35:21

Please do your homework before making nonsense requests which have already been asked and answered many times before.

Callum at 2012-02-16 20:36:57

It does look like Google's servers are rejecting the message. Could it be that the message contains a comment which is in fact spam? Personally, I use SendGrid to send emails from my server and WordPress. An account with up to 40k emails per month is free to Rackspace customers. I could furnish you with a referral link if you're currently unable to login to your Rackspace control panel. ;-)

Jeff at 2011-12-24 04:47:18

Hello Callum, We greatly appreciate your plug-in and have used it for some time. I do have something to run by you however. We are hosted by bluehost, and after some issues with how they handle email, we decided to use gmail to be our email servers. We setup our email addresses via Google Apps for Business and have multiple sign in enabled. The email address we are using as the reply-to address is one of those email addresses, but not the primary email address. We use the primary email address and password as the login. When I enter the SMTP options as outlined by Google, I get SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111) SMTP Error: Could not connect to SMTP host. I get this error using Port 25 and TLS encryption. When I use SSL and your recommended port setting (memory is failing me at the moment), I get a timeout response. However, when I use the exact same settings (Port 25 and TLS) in Outlook 2007, it sends and receives email just fine. I do not have a firewall installed in Wordpress, so I'm not sure what is going on. Do you have any suggestions? I've gone back and looked at all the posts back to 2008, but haven't had any luck with a remedy as yet. Thanks in advance for your assistance in these matters. Jeff

kyriakosb at 2012-01-08 22:53:03

THANKS I FUND IT. VERY EASY

Janice at 2012-04-23 04:51:06

Callum, First of all, thank you so much for your answer! I do appreciate your time! I do have testing to the same email address as the contact form is trying to send to. Please see below for the message from WP Mail SMTP when I sent out the test mail. Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#311 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(30) "wordpress@kourtneyereppert.com" ["FromName"]=&gt; string(12) "Contact Form" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to janice@janicekim.net" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(24) "jkdesignwork12@gmail.com" ["Password"]=&gt; string(8) "********" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp:private"]=&gt; object(SMTP)#313 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn:private"]=&gt; resource(182) of type (stream) ["error:private"]=&gt; NULL ["helo_rply:private"]=&gt; string(139) "250-mx.google.com at your service, [65.254.224.23] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES " } ["to:private"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "janice@janicekim.net" [1]=&gt; string(0) "" } } ["cc:private"]=&gt; array(0) { } ["bcc:private"]=&gt; array(0) { } ["ReplyTo:private"]=&gt; array(0) { } ["all_recipients:private"]=&gt; array(1) { ["janice@janicekim.net"]=&gt; bool(true) } ["attachment:private"]=&gt; array(0) { } ["CustomHeader:private"]=&gt; array(0) { } ["message_type:private"]=&gt; string(5) "plain" ["boundary:private"]=&gt; array(2) { [1]=&gt; string(35) "b1_73c6684c0c35872fa7261ddce5357603" [2]=&gt; string(35) "b2_73c6684c0c35872fa7261ddce5357603" } ["language:protected"]=&gt; array(0) { } ["error_count:private"]=&gt; int(0) ["sign_cert_file:private"]=&gt; string(0) "" ["sign_key_file:private"]=&gt; string(0) "" ["sign_key_pass:private"]=&gt; string(0) "" ["exceptions:private"]=&gt; bool(false) } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER:220 mx.google.com ESMTP wd17sm23775170vdc.21 SMTP -&gt; FROM SERVER: 250-mx.google.com at your service, [65.254.224.23] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES SMTP -&gt; FROM SERVER:250 2.1.0 OK wd17sm23775170vdc.21 SMTP -&gt; FROM SERVER:250 2.1.5 OK wd17sm23775170vdc.21 SMTP -&gt; FROM SERVER:354 Go ahead wd17sm23775170vdc.21 SMTP -&gt; FROM SERVER:250 2.0.0 OK 1335155657 wd17sm23775170vdc.21 ------------------------------------------------------------------------------------------------------ This is the test email I received. (Subject: WP Mail SMTP: Test mail to janice@janicekim.net From: "Contact Form" Date: Mon, April 23, 2012 12:34 am To: janice@janicekim.net Priority: Normal Options: View Full Header | View Printable Version | Download this as a file | View Message details This is a test email generated by the WP Mail SMTP WordPress plugin. ------------------------------------------------------------------------------------------------- Thank you again for your help!

Rami A. at 2011-12-08 11:29:57

Hi Callum, Yes, I am willing to test a possible fix. Thank you! :)

Callum at 2011-12-08 11:06:53

Interesting, thanks for the detailed bug report. I think I have a simple fix. If I email you a modified wp_mail_smtp.php file, would you be willing to test it?

Kevin Raihala at 2011-11-05 17:28:51

If I send through local host the test mail goes. I have gmail accounts which do not work. Is smtp.gmail.com a valid address? Is gmail no allowing smtp activity any more? This is the settings I used: Gmail / Google Apps To send email via Gmail or Google Apps, use these settings: Mailer: SMTP SMTP Host: smtp.gmail.com SMTP Port: 465 Encryption: SSL Authentication: Yes Username: your full gmail address Password: your mail password

Callum at 2011-03-29 11:59:52

Each test message looks the same, the subject line is the same, so it's hard to tell them apart. Email is a receive and forward system, so it's possible for mail to get held up for hours or days without any notifications being sent. Are your test messages working now? Have you tried with a different recipient email address on a different provider? It might be an issue between GoDaddy and your mail host for example.

Bri at 2011-03-29 12:54:41

Well, I know that I've NEVER gotten a "bool(true)" when sending a test message, so I would think that they wouldn't have been sent at all. Yes, there were test messages sent to multiple recipients on different e-mail servers. They all arrived at the same time the day after I sent them, even though I sent them some hours apart. Test messages still aren't working -- all still return "bool(false)". Additional test messages sent yesterday to multiple addresses on multiple mail servers still haven't arrived.

Rob at 2011-10-11 18:23:58

Thanks v much Callum - yep, a couple of "stripslashes" in the form's post routine and all is good. Much appreciated - and thanks again for a great plugin.

Callum at 2011-10-11 18:01:18

It's related to the contact form. This plugin doesn't affect the subject line in any way. There's probably an issue somewhere with variables not being <a href="http://php.net/manual/en/function.stripslashes.php" title="Remove slashes from a variable" rel="nofollow">unlashed</a>.

Rob at 2011-10-11 17:48:05

Ah, okay - the comments system here stripped that out! The last bit that read "I get them replaced with..." should have given the example of [ \ &amp; quot ] (without the square brackets or spaces!!). Thanks.

Rob at 2011-10-11 17:45:59

Hi Callum, I'm using a contact form from within a wp template - and it was failing to send mails. I was told this was because I needed to use SMTP rather than the PHP mail. Someone mentioned your plugin - and it's almost perfect! I say almost, as if someone uses speech marks or apostrophes in the subject or body of the message, I get them replaced with \&quot; or similar. Is this something that I can resolve at your plugin's level - or is more likely to be something I need to tweak in the template? Many thanks, Rob.

Alex at 2012-02-16 23:38:44

Thanks, Callum, for such a quick reply! No, all comments on my blog are 99% spam-free (thanks, Akismet!). But I think that due to the fact that notification about the same new comment is send to about 100 email addresses, Google considers it as spam. Would be great to ensure Google that my mails are not spam. Do you have any suggestions or any cases similar to my in your practice? Thank you for the SendGrid suggestion, but I would like to stick to Google services. Maybe there is something I should inform my hoster about in order to change the situation? Thanks, Alex

Callum at 2012-02-17 00:29:56

There are 7 pages of comments. You'll find mentions <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-6/#comment-71623" title="Security in WP Mail SMTP" rel="nofollow">here</a>, <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-6/#comment-72860" title="More security in WP Mail SMTP" rel="nofollow">here</a> and <a href="http://www.callum-macdonald.com/2008/12/12/wp-mail-smtp-v08/comment-page-5/#comment-49869" title="Even more security in WP Mail SMTP" rel="nofollow">here</a>, which are just the first three I found in a quick scan.

Callum at 2012-02-17 00:31:07

If your mail server is rejecting the From address, I'm not sure what's causing that. Can you paste the relevant error messages? If you're using the correct SMTP server and settings, then I'd guess the plugin is working as expected, and the issue lies on the mailserver end.

Callum at 2012-02-17 00:24:04

I believe sending the same message to many people will cause problems. If you always send to the same group of people you could use a mailing list. Also, to be clear, SendGrid is an email delivery service, your replies would still go through gmail. I think SendGrid or your own mailserver is the "correct" technical solution.

Guillermo at 2011-08-24 19:02:59

It justs shows the default WP_LANG set in wp-config.

Callum at 2011-08-24 18:58:56

If you can post specific error messages I might be able to help. Telling me it does not work is not enough information.

Guillermo at 2011-08-24 19:02:04

That's the problem, i don't get any error. Usually my home page is 123123123.com. The english site is 123123123.com/?lang=en When i activate your plugin, the theme localization stops working, but doesn't show any error message. With theme localization i mean all the theme elements from Wordpress. Like the "Read more" which should be translated as "Leer más" in Spanish, or "Home" which should be translated as "Inicio".

Guillermo at 2011-08-24 18:50:42

Hi Callum, actually i love your plugin but I've found some kind of bug with another plugin called WPML CMS. It's a plugin that allows you to have your blog in multiple languages, theme localization with .mo and .po files and content translate. I'm currently using it, but if active your plugin, suddenly the theme localization regarding .mo and .po files stop to work. I've checked it 100% sure. If i deactivate wp-mail-smtp translation plugin works again. Do you have any clue why this could happen and how to fix it?

Bart at 2012-04-20 21:40:42

Callum, thank you for a great plugin! It worked great until for a completely unrelated issue I had to address some spam issues on the same domain different website which resulted in me removing the remaining email account from server and turning on SPF (Sender Policy Framework) on. Shortly thereafter I noted that the WP site where your wonderful plugin was directing via SMTP of google was not able to send the FS Contact Forms anymore. I immediately turned of SPF, of as I noted that as the last and change but was not able to get it to authenticate. Double checked for typos but it ends up that it is not knocking on the SMTP from google's door that I did configure. Instead I get an error from my host server regarding the authetication. How can I force it to go to SMTP.gmail.com for real again error message below The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER:220-panther.directrouter.co.uk ESMTP Exim 4.77 #2 Fri, 20 Apr 2012 21:18:31 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -&gt; FROM SERVER: 250-panther.directrouter.co.uk Hello panther.directrouter.co.uk [212.113.141.30] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP SMTP -&gt; ERROR: Password not accepted from server: 535 Incorrect authentication data

Callum at 2011-10-17 17:04:31

Yes, if you place all that info in wp-config.php that will configure the plugin for the whole site. It will also disable the admin menu to avoid confusion.

Callum at 2011-10-17 17:05:58

Have you chosen to use TLS encryption? Your PHP server might not be configured to allow encrypted connections. But it looks from the "bool(true)" like your message was sent successfully. Does the test message ever arrive?

Olutaller at 2011-10-01 15:34:51

Thanks my host has open the firewall now and everything is ok Kind regards

Gyurci at 2011-10-01 14:34:17

Hi, I would like to know when I sent the e-mail which was used the PHP Mailer function or the SMTP server. What does it show in Your plugin? I configured the plugin to use SMTP, but after the sending I can see this line: object(PHPMailer)#278 (53) May be it is not correct, I would like to know what should I see in case the correct SMTP using. I hope now everything is clear enough. Best regards, Gyurci

Callum at 2012-05-14 12:40:47

If you're getting a blank screen, that's typically the "white screen of death". There should be an error recorded in the PHP / web server logs, not visible on the page, but in the logs. You could also try setting WP_DEBUG to true in wp-config.php, that might output error messages on the page. I'd recommend switching it back after you see any errors, as it's not sensible to leave it enabled all the time.

Callum at 2011-10-05 11:33:28

To be frank, if you want my help, please be kind, respectful and appreciative in your tone, or find somebody else to help you.

Leland Zaremba at 2011-09-06 21:25:51

Hey Callum, Do you have any good suggestions to implement digitally signed outgoing emails? With OpenPGP or S/MIME? Would it be possible to build in the function of this plugin: S/MIME Plugin http://wordpress.org/extend/plugins/smime/ I need to be able to send digitally signed emails from my WPEC e-store and I am going through the gmail apps server. Any advice would be very helpful. Thank you.

Callum at 2011-09-01 10:36:08

You received a bounceback that looks like a copy of the test message was sent to 20 random email addresses? This sounds very suspicious. There's definitely nothing in the code to email people at random. It's possible that your site has been hacked in such a way as to copy all outgoing emails to other addresses. I'm really not sure. Can you check outgoing logs on your mail server to see exactly what's going on? That would give you the best idea. Or, you could try install the <a href="http://wordpress.org/extend/plugins//wp-mail-log/" target="_blank" title="WP Mail Log" rel="nofollow">WP Mail Log</a> plugin, that may also help.

Ellie at 2011-04-20 18:27:10

Well I have to say that Callum sorted this out for me perfectly. It seems to have been some weirdness created on a Windows server mail option that gets in some way changed when the plugin has the Set the return-path to match the From Email unchecked. Even when the option is checked again, it is as if the server will no longer accept that setting. Mail is actually being sent, but is not leaving the server. With a new update to the plugin and the correct setting now enabled, my mail is going as expected and I am back to normal. I hope this might help someone else in the future. Thanks to all who tried to help but most especially to Callum Macdonald, plugin developer extraordinaire who went over and beyond the call of duty to sort the issue with me. (I posted this comment on the Wordpress forum for those who were trying to help me as well.) Cheers! Ellie

Callum at 2013-07-16 15:44:31

The issue lies with your mailserver, you'll need to ask the mailserver admin how to unlock your username / password to allow sending from any address.

Callum at 2012-06-28 10:12:24

Apologies, for some reason this comment slipped through my net. This is the default behaviour. Line <a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/tags/0.9.1/wp_mail_smtp.php#L439" title="WP Mail SMTP v 0.9.1 line 439" target="_blank" rel="nofollow">439</a> checks to see if we're using constants from wp-config.php before enabling the options page. Is that not what you're seeing? Do you have WPMS_ON defined to true?

Dan at 2011-05-23 18:10:01

I was noticing that my Gravity Forms notifications were not being sent, so I installed your plugin and got it working using SMTP. I would like to use PHPmailer for all sites on my server. I've been updating and modifying my server to get Sendmail to work properly and I've been using your plugin to test this. I used to get a bool(false) using the PHP Mailer settings and after changing some server/host settings, I now get a bool(true) using the PHP Mailer, but still no emails are being sent. Any ideas why?

Robert at 2011-05-31 20:28:14

I have tried using the previous version of your plugin, and wordpress versions from 3.0.5 - 3.1.3 So it must be something to do with GoDaddys hosting... I also installed a 4th site, without changing anything &amp; installed wp-mail-smtp latest version on both &amp; the same results... So it looks like GoDaddy is blocking it. If you would like, I can setup a site with access to the MySQL database &amp; FTP Access for you to play with it. (Im not asking you to fix it, its obviously not your problem, im only saying since you problably dont have a godaddy account &amp; if you want to try to figure out a solution, I have no problem letting you use one of mine... just an offer :) ) I will have to move my hosting away from godaddy to HostGator... I tested everything there &amp; it all works fine.

Robert at 2011-06-02 22:32:57

Ya, it doesnt allow Yahoo, hotmail, or a few other domains to fill out forms on the sites... Thats why I wanted to use your plugin... GoDaddy sucks... I will be moving those sites and using your stuff once I do that... Thanks for your support, I will show mine as soon as i move the sites....

Alex at 2011-05-18 04:15:22

Hello, I am running wordpress site with WAMP locally. I have wp-mail-smtp plugin installed, and set send e-mail via Gmail option checked. I put correct email address and password but I get this error when I press test button: An error was encountered while trying to send the test e-mail. SMTP Error: Could not connect to SMTP host. Failed to connect to server Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? Do you have any idea what else I must do to make the plugin work? Hopefully you can help me with this problem...

Callum at 2011-05-18 09:26:10

I'm not exactly sure what is required. I think something is missing from your WAMP stack, namely ssl support. But how you'd go about installing that, I've no idea I'm afraid. I have zero experience hosting on Windows. If you do find a solution, I'd be grateful if you share it back here to help future searchers.

inge at 2011-05-18 11:03:29

Hi, I have just installed your WP mail SMTP plug in. The test mail works, interestingly, when I send to: ingewoudstra@mumandcareer.co.uk (which is also the address I use in the 'send from' box). However when I try sending it to my other e-mail address: imvangrondelle@btinternet.com, your log (which is great to have!) returns an error 'could not send to imvangrondelle@btinternet.com. Any ideas as to what might be going on? I suspect it's nothing to do with your plug-in but just thought you might have some clues...?

Callum at 2011-05-18 11:15:14

What does the error message say? The clue's probably there... ;-) I'd guess that you're not using authentication, or something's going wrong with authentication. If you send mail to blah.com via the blah.com mail server, the server accepts the message without authentication because it's the destination for the message. But if you're trying to send to other.com through blah.com, they won't relay (pass on) the message for you without a username and password. Hence, it works for your own address, but not for other addresses.

inge at 2011-05-18 11:41:31

Hi, thanks so much for the amazingly fast response. and sensible too. I now added the smtp authentication and even managed to find the right password to my server. But, to no avail. Same thing happens, with no other error messages than: string(85) "SMTP Error: The following SMTP Error: Data not accepted.imvangrondelle@btinternet.com" ["From"]=&gt; I could easily understand if you have no further clues either, but as you have all the superior knowledge here I am just trying and hoping you might be willing to help.

Callum at 2011-05-18 11:46:44

Can you send mail through that server with a regular mail client (program)? The error data not accepted suggests that the server is rejecting the message for some reason. Why, I'm not sure, you could ask the mail server administrator, they might know more.

inge at 2011-05-18 14:04:41

Thanks so much for trying. Yes the e-mail address works fine otherwise, and I can e.g. send from ingewoudstra@mumandcareer.co. uk (on my one server) to imvangrondelle@btinternet.com (on the other server). Weird... Thanks for your help.

Arlen at 2011-06-03 20:11:35

Hi Callum, I was having problems using your plugin. Turns out my host (Bluehost) blocks SMTP by default. It might be good to make a note of that because I think many people setup your plugin correctly and can't figure out why it doesn't work. :)

Eric at 2011-06-06 21:38:40

Callum, I solved the issue. The From field was left blank, which I left that way on purpose, because I thought "the default email will be used". Once I entered a From Email in the field the plug-in worked fine. Thanks for taking the time to create the plug-in.

Eric at 2011-06-06 20:23:40

Callum, I have the WP SMTP MAIL v0.9 plug-in installed on Wordpress 3.1.3. I am receiving the following errors when I try to send out a test email: 111 1.1.1 sender domain does not exist and SMTP -&gt; ERROR: DATA not accepted from server: 111 1.1.1 sender domain does not exist. The weird thing is I had wp smtp mail working before I upgraded to wordpress 3.1.3 using the same smtp host, user name, and password as I'm using now. It should be noted that i'm running wordpress on our own in-house windows server and I'm trying to use our company's email hosting provider as the SMTP host. Can you tell me if this could be an issue with the coding like adding "wp_" in front of the mail() function or if I just plain have my smtp host, user name, password wrong? Could the latest version of Wordpress make wp smtp mail inoperable? Thank you.

Will at 2011-06-09 00:42:00

I'm trying to use your plugin with contact form 7, it works great, but I'm attempting to make this a sign up for a newsletter and the newsletter program (Sendblaster) checks the inbox for certain subject and then pulls in the "from email address" is there any way to make them not show that they all come from the same address?

Callum at 2012-04-07 16:11:12

If you look at the source of the plugin file you can copy and paste a section into wp-config.php then modify to suit your needs.

Jim K. at 2012-04-24 19:33:05

here you go: http://pastebin.com/jVKuZAUd

Krysta at 2012-07-30 16:37:05

I have been having an ongoing issue with email notifications for a while now and have not been able to fix this. I have installed your plugin and it seems to work okay for a few and then when I go to check it the next day it's not working again. The forms are working fine but the email notifications are not being sent out. I have contacted GoDaddy to see if everything is working fine on their end and they assured me that it is. Any help would be much appreciated!!

Kam at 2011-12-16 18:24:46

Hi, I installed SMTP plugin. But what is totally weird here, is that everything works as it should in Safari and Firefox. But in IE7 and IE8 Contact Form doesn't send email. As I see it, it cannot be a server problem, if it works in some browsers and not in others. Any suggestions on that?

marikamitsos at 2012-07-27 19:44:52

Hello and thank you for your plugin, We've been using it for single sites and just trying it out on a multisite/subfolders. You mention "if using the plugin on a multi-site setup, put your settings in wp-config.php and then disable the admin menu." I have not the slightest idea on what to put on the config.php and how to disable the admin menu for individual sites. Can you please elaborate? Preferably with an example. Thanks again

Callum at 2012-03-16 16:31:21

Create a simple PHP file somewhere on your server with the following code <code><?php var_dump(mail('youremail@domain.tld', 'Test email from PHP at ' . date('r'), 'Simple email test from the mail() function in PHP.')); ?></code>. Then load that file in your browser, and see what output you get and if the email arrives.

Spence at 2012-03-16 16:12:56

In that case, any advice would be highly appreciated. From experience, what issues should i be looking at specifically. If it helps, my wordpress site is running on bluehost. The support team have really gone above and beyond on this one, but to no avail.

Spence at 2012-03-16 15:53:20

I assure you, emails were being sent and received just fine before installing the plugin. After deleting it i get the mail() error message i posted above. I followed the link you posted but couldn't figure out which values to remove from wp_options. Which ones are they...Thanx, spence

Callum at 2012-03-16 15:56:23

To be clear, these options have no effect on the rest of the WordPress system while the plugin is not installed. You can remove them for the sake of completeness if you like, but they will not fix your problem. The values are listed in the link I sent, they start mail_ and smtp_. If you find those in wp_options, you can remove them, those are the only traces left of the plugin.

Callum at 2012-03-16 15:34:42

If you have disabled the plugin, it will have no effect whatsoever on your WordPress installation. People have had issues like this before, in every case it turned out to be something that had changed on the host. Do you have root access to your server? If you want to delete the plugin directory (wp-content/plugins/wp-mail-smtp) the only thing left will be values on the wp_options table. If you want to delete those, you'll find a list of them <a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/trunk/wp_mail_smtp.php#L41" title="List of options used by WP Mail SMTP" target="_blank" rel="nofollow">here</a>. If you re-install the plugin and post an error message, I'd be happy to help you resolve the issues.

Spence at 2012-03-16 15:22:39

How do i completely remove this plugin are there anymore files left in my database. I've just lost an entire day of my life trying to remedy this.

Spence at 2012-03-16 15:07:19

After deleting this plugin i can't send out emails from my blog. I get an error message : The e-mail could not be sent. Possible reason: your host may have disabled the mail() function... My host cant do anything for me. I don't know what to do please help

Kevin at 2011-06-10 23:37:42

Just before the close of the <code>phpmailer_init_smpt</code> function, I added the following: <code>// Add Reply-To header for messages // Fixes the issue of Gmail overriding the From header with the inbox address $phpmailer-&gt;AddReplyTo($phpmailer-&gt;From, $phpmailer-&gt;FromName);</code>

Christien Paul at 2012-03-21 01:56:51

I am using the Contact Form 7 plugin with your SMTP config plugin. I have it setup on WP Multisite 3.3 and it all works great. My only complaint is that all emails are noted as coming from the SMTP account that I've configured for your plugin. Is there anyway to get the web visitor's email address to be parsed in the message as the From Email? I notice there is a setting to specify the from email in the config but it doesn't state if there is a variable or short code that can be used. Please advise, CP

Aaron at 2012-02-15 23:09:29

I am using WP-Mail-SMTP on a site and I am trying to have a BCC on the email. How do I do this? Currently I am using the WP_Mail function and doing this: $header .= "Bcc:aaron@company.com"; Is this how I should be doing it? This is not working for me :( Thanks!

Aaron at 2012-02-15 23:13:17

It might be working after all... disregard.

TC Cardwell at 2012-05-08 11:43:47

Hey hello I have installed the plugin Download Version 0.9.1 I am using emember and I am not getting the emails sent from the emember so they told me to install your plugin but after installing and activating the plugin then going to the below link all I get is a blank page ??? http://www.hitchingpostbrewing.com/wp-admin/options-general.php?page=wp-mail-smtp/wp_mail_smtp.php I have redownloaded the plugin, deleted the original reinstalled and the same problem, I am running wp Version 3.3.2, any thoughts on the problem would be great to get this fixed... Thanks TC

Misha Reyzlin at 2011-11-03 06:42:08

Great, thanks! I was able to just use get_option('smtp_user') in order to use the same email as set on plugin configuration page (that's what I meant, sorry for not being clear).

Callum at 2012-03-11 12:42:18

If you don't have any way of sending mail from the server (so if PHP's mail() doesn't work for example) and you have WordPress send email via SMTP, then that will probably achieve your aims as I understand them. However, servers need to send notifications by email for all sorts of reasons, I would strongly discourage you from disabling all outgoing mail on the server unless you really know what you're doing.

Misha Reyzlin at 2011-11-02 17:44:53

Hi, I'd like to know if I can use `PHPMailer["Username"]` programmatically within my theme's code. I've tried `$PHPMailer-&gt;Username`, but without luck. And `var_dump($PHPMailer);` returns `null`. What I am trying to achieve is that the email will be sent to the same account that is used to make SMTP authentication. That way, my client will only set the SMTP details in one place (through the admin interface) and then she'll be able to get the emails to this same account. And in case she wants to change the address – she'll still get the emails to this same account. Thanks!

Callum at 2011-11-02 18:03:43

It's $phpmailer not $PHPMailer and it's probably in the global scope, so you'll need <code>global $phpmailer;</code> first. I'm not sure what you mean about using the same values as on the SMTP page, but if you want to access those, it's probably easier to use the options api, like <code>get_option('mail_from');</code> for the from email set on that page.

Callum at 2012-04-24 19:24:51

Can you pastebin the relevant HTML from the options page?

Mark Bedford at 2012-05-07 15:18:23

Installed plugin WP-Mail-SMTP Version 0.9.1 ("Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings"). I'm using smtp.gmail.com with the recommended settings, and the plugin is able to send a test email from wp-admin. That's fine, but I'm having trouble translating that into where the email is actually being sent in the PHP program, which is called formprocessor2.php. I've seen the general recommendations to change mail() to wp_mail(), but I don't really understand the specifics of how to do that. I did try changing the mail() command in formprocessor2.php to wp_mail() and got this error: Call to undefined function wp_mail() in C:\wamp\www\testsite\rosterform\formprocessor2.php on line 86 I do know the mail() command in the PHP program doesn't seem to make use of your plugin (it just hangs when sending an email). The instructions say something about, "If you're using plugins to send email..." but I'm not really using another plugin, just the mail() command, and I can't figure out what I need to do to get it to use your plugin. Again, the plugin works fine from wp-admin.

Rami AbuGhazaleh at 2011-12-09 01:42:47

Hi Callum, That works! Thank you!! :)

guiy at 2011-10-27 17:43:03

I keep getting these errors when sending , do you know why? SMTP -&gt; FROM SERVER:250 2.1.0 Sender OK SMTP -&gt; FROM SERVER:550 5.7.1 Unable to relay SMTP -&gt; ERROR: RCPT not accepted from server: 550 5.7.1 Unable to relay

Rami A. at 2011-12-08 08:49:19

Hi Callum, Thank you very much for WP Mail SMTP v0.8! It works great! :) I seem to have run into a very minor bug, and I hope that it can be reproduced on your end too. I am running WordPress 3.2.1 on Windows, IIS, and PHP 5.2.14. So basically when I am on the Email Settings page, the url is http://www.myblog.com/wordpress/wp-admin/options-general.php?page=wp-mail-smtp/wp_mail_smtp.php. When I click on the "Save Changes" button, I see the "Settings saved" message and everything looks good except for the url now points to http://www.myblog.com/wordpress/wp-admin/options.php. And so now if I enter an email address in the "To:" field and click on the "Send Test" button, I am redirected to the url: http://www.myblog.com/wordpress/wp-admin/options.php. However, if I go back to the Email Settings, enter an email address in the "To:" field and click on the "Send Test" button, it works as expected, and subsequent "Send Test" submits also work as expected. I notice in the html and php the "Save Changes" form indicates method="post" action="options.php" but I don't have a lot of knowledge about the wordpress framework to know if this is fine or not. I am using iis url rewrite, appending the query string, and pretty permalinks is turned on, so I'm not sure if this is only happening on my site or not, but it is possible. Thanks again! :D

Callum at 2011-09-07 10:22:52

Now that's an awesome question! :-) I'm not aware of a plugin that combines SMTP with digital signatures. The plugin you linked to would, unfortunately, totally override WP Mail SMTP. So emails would be signed, but sent via mail(). I think it would be relatively easy to get the two plugins to play nicely together. One question, as far as I can tell, the smime plugin looks for the recipient's key in the user meta table. I'm assuming you want to sign only the emails that are being sent to your site's users? If you want to sign emails to anyone who signs up, you'll have to get a mechanism to retrieve their keys. Are you familiar with PHP at all? I don't think it would be too much work to get the two plugins talking if you know a bit about PHP. I could provide a little guidance if you like.

Valerie DuVernet at 2011-07-17 06:46:06

I have installed your plug-in and the test email works but initial registration email doesn't work.(using regular wordpress login/registration form) however account is created and the lost password email works. It's only the initial email that doesn't seem to be sent - any ideas? Thank you

Kevin at 2012-01-13 18:57:28

Hi Callum I appreciate your work on this.. Trying to get this working on HostGator VPS, and getting could not connect error. I am investigating php settings,and I was wondering if you had a phpinfo page on a working host I could compare to mine to help troubleshoot this. thx for any help!

Callum at 2012-01-13 19:04:24

Great idea, and amazingly, the first time anyone has ever asked! I'll whip one up now and email it to you. I'll be very interested to hear what you find.

Callum at 2012-02-25 14:32:04

This is precisely the sort of whining I'm referring to. Your original message says "the contact forms, that freeze when you input Yahoo!Mail and Gmail e-mail addresses". This is the only thing that even resembles an actual description of your problem, and it's so unspecific as to be useless. Did you read the instructions <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" title="WP Mail SMTP" rel="nofollow">here</a>? Did you try sending a test message? What was the result? Lose the self righteous, my life is so hard, whining attitude and I'm happy to help you as best I can.

jamie gerig at 2011-10-04 18:57:49

Yes, I receive all other types of email. It's hard to believe it's the contact form given that i've tried so many. I've just done a quick test using the Grunion Contact Form here: http://www.zorba.com.co/wordpress/contact-2 Again, no email has arrived (I always check the junk mail just in case). That said, I don't know whether this, or any of the other contact forms, use the wp_mail() function to send email - all I know is that the plugin is activated on my wordpress dashboard and i've tried all the recommend settings.

Callum at 2011-10-04 18:35:17

Do you receive comment notifications, password reset emails, and so on? If all email except contact forms are working, then the problem lies with the contact form. If the contact form uses the wp_mail() function to send email, then it should work. But if you're using a contact form that implements its own mail sending mechanism, the WP Mail SMTP plugin will have no impact.

jamie gerig at 2011-10-04 18:27:47

You are right - your plugin seems to be fine. I just thought you might be able to help - as thus far - GoDaddy and Wordpress - tend to blame each other. I have used endless different contact forms - the forms certainly are not the problem.

Callum at 2011-10-04 18:17:02

If you have settings that work and you receive the test email, then this plugin is working correctly. Depending on which contact form you're using, there may be problems with the form. Personally, I use <a href="wordpress.org/extend/plugins/grunion-contact-form/" title="Grunion Contact Form at WordPress.org" target="_blank" rel="nofollow">Grunion Contact Form</a> and it works fine for me.

jamie gerig at 2011-10-04 16:37:31

Hi Callum, Yes, I've read all the posts on GoDaddy. I have tried 2 different SMTP settings. SMTP Host: relay-hosting.secureserver.net SMTP Port: 25 SMTP Host: smtpout.secureserver.net SMTP Port: 80 With both settings, the test email is TRUE. However, only with the latter settings - does the test email actually arrive to my inbox. With both settings - the contact form appears to work successfully - but never arrives to my inbox. Here is the output from a test message: Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#216 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(17) "info@zorba.com.co" ["FromName"]=&gt; string(11) "zorba tours" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to jamiegerig@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(24) "smtpout.secureserver.net" ["Port"]=&gt; string(2) "80" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(17) "info@zorba.com.co" ["Password"]=&gt; string(8) "XXXXXXX" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp:private"]=&gt; object(SMTP)#217 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn:private"]=&gt; resource(171) of type (stream) ["error:private"]=&gt; NULL ["helo_rply:private"]=&gt; string(96) "250-smtpauth11.prod.mesa1.secureserver.net 250-AUTH LOGIN PLAIN 250-8BITMIME 250 PIPELINING " } ["to:private"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "jamiegerig@gmail.com" [1]=&gt; string(0) "" } } ["cc:private"]=&gt; array(0) { } ["bcc:private"]=&gt; array(0) { } ["ReplyTo:private"]=&gt; array(0) { } ["all_recipients:private"]=&gt; array(1) { ["jamiegerig@gmail.com"]=&gt; bool(true) } ["attachment:private"]=&gt; array(0) { } ["CustomHeader:private"]=&gt; array(0) { } ["message_type:private"]=&gt; string(5) "plain" ["boundary:private"]=&gt; array(2) { [1]=&gt; string(35) "b1_99ec05614c115ab9c2d46aed777cfefc" [2]=&gt; string(35) "b2_99ec05614c115ab9c2d46aed777cfefc" } ["language:protected"]=&gt; array(0) { } ["error_count:private"]=&gt; int(0) ["sign_cert_file:private"]=&gt; string(0) "" ["sign_key_file:private"]=&gt; string(0) "" ["sign_key_pass:private"]=&gt; string(0) "" ["exceptions:private"]=&gt; bool(false) } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER:220 smtpauth11.prod.mesa1.secureserver.net ESMTP SMTP -&gt; FROM SERVER: 250-smtpauth11.prod.mesa1.secureserver.net 250-AUTH LOGIN PLAIN 250-8BITMIME 250 PIPELINING SMTP -&gt; FROM SERVER:250 Sender accepted. SMTP -&gt; FROM SERVER:250 Recipient accepted. SMTP -&gt; FROM SERVER:354 End your message with a period. SMTP -&gt; FROM SERVER:250 Accepted message qp 32177 bytes 621

prathiksha at 2011-05-30 08:17:08

hi, I configured email plug-in and was successful in sending out emails. Now all of sudden it isn't functioning properly. please help me out. here goes the output Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#112 (44) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(75) "The following From address failed: blog.chethanatrust@tapintoinnovation.com" ["From"]=&gt; string(40) "blog.chethanatrust@tapintoinnovation.com" ["FromName"]=&gt; string(4) "Blog" ["Sender"]=&gt; string(40) "blog.chethanatrust@tapintoinnovation.com" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to vibha16488@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["Version"]=&gt; string(5) "2.0.4" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(24) "smtpout.secureserver.net" ["Port"]=&gt; string(2) "80" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["smtp"]=&gt; object(SMTP)#111 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn"]=&gt; int(0) ["error"]=&gt; array(1) { ["error"]=&gt; string(38) "Called Reset() without being connected" } ["helo_rply"]=&gt; NULL } ["to"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "vibha16488@gmail.com" [1]=&gt; string(0) "" } } ["cc"]=&gt; array(0) { } ["bcc"]=&gt; array(0) { } ["ReplyTo"]=&gt; array(0) { } ["attachment"]=&gt; array(0) { } ["CustomHeader"]=&gt; array(0) { } ["message_type"]=&gt; string(5) "plain" ["boundary"]=&gt; array(2) { [1]=&gt; string(35) "b1_7bd33857d376d3ad2ce986f71e21fa13" [2]=&gt; string(35) "b2_7bd33857d376d3ad2ce986f71e21fa13" } ["error_count"]=&gt; int(1) ["LE"]=&gt; string(1) " " ["sign_cert_file"]=&gt; string(0) "" ["sign_key_file"]=&gt; string(0) "" ["sign_key_pass"]=&gt; string(0) "" } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: SMTP -&gt; NOTICE: EOF caught while checking if connected

prathiksha at 2011-05-30 08:40:41

hey go to WAMP server settings, there in PHP extensions check mark php_openssl. It worked out for me. Hope its does it for you too.

Callum at 2012-04-26 17:33:15

I've logged into your server, generated a test message, and it was delivered successfully. The mailer was set to PHP's mail() and not SMTP. I ran some other tests and it appears that your host is intercepting any outgoing connections on port 25 or SSL on port 465, but only from PHP, not from the server itself. I've generated a file called <code>~/test-mail.php</code> which shows this. If you log in via SSH and run <code>php ~/test-mail.php</code> you'll see that it connects to the host's mail server and not gmail. The code is very short, I recommend sending it to your host to explain the problem. I changed the mailing method back to mail() so that messages will continue to send. As I was able to see your mysql and gmail passwords, I recommend you cycle them immediately. I recommend <a href="https://www.grc.com/passwords.htm" title="Very strong passwords from GRC" target="_blank" rel="nofollow">GRC's excellent password generator</a>.

Branda at 2012-02-22 19:18:55

Hello Callum, I'm new at the WordPress scene and I just got done putting my website together with the MySiteMyWay Myriad them for WP. Everything works fine, except for the contact forms, that freeze when you input Yahoo!Mail and Gmail e-mail addresses. I contacted the MySiteMyWay support team about it and they suggested that I install your WP SMTP Mail plugin, which I did. The issue remained, and they suggested that I contact my hosting provider so they could help me out configuring the SMTP correctly. They didn't know/couldn't help me. Would you be able to walk me through the configuration of the plugin? I'm a graphic designer, brand new to web and do not know how to code yet. Thank you for your attention!

Callum at 2012-04-26 13:50:23

Can you try installing the <a href="http://wordpress.org/extend/plugins/wp-mail-log/" title="Log all calls to wp_mail()" target="_blank" rel="nofollow">WP Mail Log</a> plugin and then see try one test message and one test registration. Maybe there's a difference in the way the emails are being generated that will tell us where the problem lies.

Jon Berke at 2012-05-24 18:09:43

I'm creating a WP multisite installation and have installed the plug-in setting in wp-config.php as you suggested. This seems to be working just fine. However, the Email menu still appears under Settings for each child site. Since I'll be hosting the sites and need to control the email settings, I don't want each site owner to see this option. I can work around this by removing the Email menu myself, but I think it would be more generally useful if you added a check in wp_mail_smtp_menus() to not add this menu when the settings are defined in wp-config.php.

sadia fahim at 2012-07-17 22:44:42

hi i am using this plugin for my website www.farahali.me it works perfectly fine, but i need to change the body text of the email sent to new user. how can i do that?

Jim K. at 2012-04-26 14:37:34

Look at my comments above, my host has a spam filter set up to kill any email with an URL in it. So test emails went through, registration emails did not. No error message at all. Sounds like you may have the same problem.

Callum at 2012-04-26 14:45:53

Thanks. Turns out that there was a <code>&lt;/span&gt;</code> tag missing. Nice catch.

Callum at 2012-04-26 14:47:36

Were you able to get SSH access to the server?

Jim K. at 2012-04-26 14:57:34

Oh yeah, I hadn't noticed that. So I guess this one actually wasn't my host's fault...

Jim K. at 2012-04-26 15:10:43

Hello, I have tried adding this: $phpmailer-&gt;AddAnAddress('bcc', (address), (name)); ...and got the error message: Call to private method PHPMailer::AddAnAddress() from context .../wp_mail_smtp.php Some google research indicates that the funtion was made private in a recent WP update. Do you know of any way around this?

bart at 2012-04-26 15:12:24

Yes I did. I even emailed this info to you a few days ago but it looks like it did not reach you. Anyway just send this again to you if you do not receive it please let me know. regards

Jim K. at 2012-04-26 15:14:04

Never mind, looks like AddBCC() works...

Callum at 2011-10-01 22:03:50

I'm not sure if I 100% understand your question. I think you're maybe confused about what the PHPMailer is. If you've chosen SMTP, then emails are sent by SMTP. If emails are being sent properly, then there's no problem. :-)

Callum at 2011-05-31 14:41:23

I'm not sure what is causing your issues. Have you upgraded the WordPress version maybe? Or any other changes? I'd assume something had to change on the server if mail stopped working across 3 independent WordPress sites.

Callum at 2012-04-23 19:01:29

<a href="http://plugins.trac.wordpress.org/browser/wp-mail-smtp/tags/0.9.1/wp_mail_smtp.php#L146" title="Add your own custom options to wp_mail_smtp.php" target="_blank" rel="nofollow">wp_mail_smtp.php line 146</a>. Just to let you know, your changes will be overwritten if you upgrade the plugin.

Jim K. at 2012-04-24 19:14:58

Sorry about that, I didn't realize the code would not show. I just cut and pasted the table from your plugin, everything after that class= was invisible, I suspect a css display:none got put in somewhere, but I don't have time today to go hunting. On the plus side, I was able to set it to smtp, and now using the google server works. This whole thing has just been damnably annoying, the tech support at my host has been less than useless on this...

Jim K. at 2012-04-24 19:04:47

It's in English. I am a little uncomfortable putting all that in a public place (I still haven't opened the site to the public), but I can show you this part right here: Mailer Mailer Send all WordPress emails via SMTP. Use the PHP mail() function to send emails. So it is still in the source. And just looking at it now, I see that: 1 - If I delete 'class="screen-reader-text"' in the source and refresh, it suddenly appears, and 2 - The use PHP mail() function option is in fact checked. So this just makes it all even weirder...

Jim K. at 2012-04-24 18:46:38

There is no option to select smtp or anything else. It looks like this: http://nzbwizard.com/smtp.jpg

Callum at 2012-04-24 18:52:16

Very interesting. Are you using WordPress in a language other than English? Can you pastebin the HTML source of that page? I'm not sure what the issue here is, but I'm happy to try and figure it out, it's not often that new issues are posted. :-)

Callum at 2012-04-24 18:38:16

I didn't fully understand your message. Have you selected SMTP as the mailer option? If not, the other settings may be ignored.

Jim K. at 2012-04-24 18:20:36

Hello again, I have been trying to implement that using the Gmail SMTP project, but it isn't working for some reason. The source for the test email using gmail is virtually identical to the one using the host's smtp, and the debugging output from both have these lines: ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; int(25) ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ...when I know I changed the settings for port, username, password, etc. I am guessing this is a problem with my host, that they are overriding my settings somehow (I also don't have any options listed under "Mailer" on the settings page where you are supposed to be able to enable phpmail), but I just wanted to double-check.

Marcus Pope at 2011-11-08 19:16:55

Hey Callum, I'm using your plugin on an in-house project and would like to send you a patch for updating a depracated warning in wp3.0+ I'm using the latest 0.9.1 version of your plugin. Let me know how I can send it to you. Thanks! -Marcus

Callum at 2011-11-08 15:58:59

You should get bounce messages if the messages failed, you'd need to ask your mail server administrator. In theory, those bounces should reach the from address. This plugin only modifies the way emails are sent, it does nothing to handle bounces, remove subscribers or otherwise, it's purely how mail is sent.

jamie gerig at 2011-10-04 20:44:08

I've activated the plugin. To be frank, I no nothing about code - so this isn't much use to me.

Callum at 2011-10-04 19:41:19

Grunion does use the wp_mail function. Try the <a href="http://wordpress.org/extend/plugins//wp-mail-log/" title="WP Mail Log - log all calls to the wp_mail() function" target="_blank" rel="nofollow">WP Mail Log</a> plugin, it will help you understand what's going on under the hood.

Callum at 2011-07-19 22:50:04

I recommend you try installing the WP Mail Log plugin. It will log all the calls to wp_mail() which will hopefully help with debugging. The plugin either works or doesn't work, but it doesn't work in halves. So if the test emails work, the plugin is working as expected. All I can really suggest is that the problem lies elsewhere.

Callum at 2011-12-25 10:33:22

Bluehost probably block port 25 so you can't send email outgoing on that port. Also, if memory serves me, gmail requires SSL not TLS. Ask Bluehost if PHP can make outgoing connections, this is the most common error reported, it's related to php.ini fopen() permissions I think.

Callum at 2012-10-23 12:39:31

Check out the wp-mail-log plugin, it'll give you a better idea of what's going on under the hood. Can you spot any differences between the messages that are being delivered and the ones that are not? I believe that SES has some tight restrictions on what addresses it will send from, so maybe something's cropping up that way. Do SES provide any kind of error logs?

Callum at 2011-10-04 13:56:20

As per the instructions, please send a test message and then read the output. If you don't understand it, copy / paste the error message here. Have you looked back on this forum to find posts about godaddy? It's been asked and answered many times before.

Callum at 2012-04-23 12:27:59

Heads up there's a password in that email which is in plain text. If that really is the password for that email account, it's now publicly accessible on the web so I recommend you change it immediately. This is a truly interesting error, I've never seen anything like it. You've configured the plugin correctly, it's attempting to connect to smtp.gmail.com and instead it's landing on some other mail server. Do you recognise the mail server that it is connecting to? Is it the same ISP as your host maybe? The next thing to ask your host is whether or not DNS is being correctly resolved for smtp.gmail.com on that machine. It appeared like it was from the telnet connection, but somehow PHPMailer is attempting to reach smtp.gmail.com and instead is getting panther.directrouter.co.uk. I'm sorry I'm not able to offer more useful input on this one, it appears to be an issue on the server and I'm not certain where it lies. The plugin and WordPress appear to be operating correctly. Can you give me SSH access to the server? I can log in and try a couple of manual connects to see if that sheds any light on it. I can supply my public key, or if you want to give me a password please change it before *and* after my login.

Callum at 2012-04-23 12:32:17

If the test mail is working correctly, then the plugin is working as expected, it appears the issue lies somewhere in the contact form plugin. I've heard reports of people successfully using Contact Form 7, but maybe something changed recently. Have you tried the Grunion Contact Form? It's the one developed by the WordPress team and I've been using it for years alongside WP Mail SMTP without issue.

Leland Zaremba at 2011-09-07 18:21:30

Callum, I am very familiar with plugin and theme development using php. However since you seem to be the best with email related coding would I be able to sponsor some help on this? Essentially we just need all outgoing emails generated by the WP e-commerce plugin store (probably using the wp_mail) function to be digitally signed since they are going to the shipping facility. Any ideas?

Jackie Garvin at 2011-11-18 14:12:48

I installed your plugin a few weeks ago and it worked fine until a few days ago. The email function on the site has completely stopped working. When I ran a test email, this is what I get: SMTP -&gt; ERROR: Failed to connect to server: (0) SMTP Error: Could not connect to SMTP host. I've spent hours trying to troubleshoot and haven't been successful. Any help that you could offer would be most appreciated. Thank you kindly.

nothanksgr at 2011-11-08 13:29:12

hello, is there a way to see wich emails that have been automatically sent to my subscribers does not reach the recipient so that i can delete these email address that no longer ecxists from my subscribe list? Thanks

Callum at 2011-09-08 10:11:05

Interesting challenge. The most elegant method would be to rewrite the smime plugin slightly to use existing hooks. It currently totally replaces the wp_mail() function. This would, hopefully, make it play nicely with other plugins affecting mail (including SMTP). That would be a fairly manageable task, I'll email you privately to discuss potential deals.

Aaron Overton at 2012-03-20 18:09:07

P.S. Now I want strawberries.

Callum at 2012-03-20 17:49:03

Return-path and Reply-to are not the same. Can you post a picture of the headers of the message you receive? What SMTP server are you using? I don't see an mx for artisanexteriors.com so I'm not able to find your mail provider that way.

Alan Ellicott at 2011-11-29 21:00:39

Just sent you the following email and then saw you ignore stuff about contact plugin. ' I know you are ‘retiring’ from Wordpress guruness and I also know this problem is not caused by your plugin but…………………. I need someone with some Wordpress emailer knowledge to help me solve this problem with 123-reg (who I will leave as soon as I can afford dedicated hosting!!) Please have a look at http://wordpress.org/support/topic/wp-mail-smtp-php-mailer-and-smtp-returning-errors and, with your knowledge, please just tell me what PHP file concatenates information to provide the directory path that is being returned as ‘not found’ in your marvellous plug in. 123 cheat by virtualising the directory structure that some functions require to be predictable. I have only just started out in this business being a .Net programmer (and still am) and am trying to supplement income with Wordpress. I now host 6 sites that can’t use email contact forms because 123-reg deny responsibility!! Just a hint or two would help enormously. Please? Many thanks Alan

Aaron Overton at 2012-03-20 17:23:50

I have these settings: http://screencast.com/t/QQlh236sc With this result: http://screencast.com/t/pJHPNQdl2 When the test message comes in, hitting reply has the right name, but the wrong email address per the above settings. Any insights into what might be going wrong? Blue skies, -Aaron

TC Cardwell at 2012-05-09 17:03:04

No I am not getting any error messages, I have provided a phpinfo page as the webite just will not seem to send mail . I would tell you your plugin is cool but I have not ever seen it yet LOL Thanks TC

Sanjeet at 2011-07-27 10:52:14

Hi Callum, First off I'd like to say that the plugin is able to send test emails successfully. No doubt about that, yet when I hit the submit button from my contact form. It says "failed to connect to mail server" .I have tried checking the codes in contact page and also the wp_mail.php page or probably i missed out something. One thing I am happy is that the plugin works, so how else do you suggest to get around this problem

Luiz Felipe at 2011-10-17 05:40:49

I have a problem =/ Test Message Sent The result was: bool(true) The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER: SMTP -&gt; FROM SERVER: SMTP -&gt; ERROR: EHLO not accepted from server: SMTP -&gt; FROM SERVER: SMTP -&gt; ERROR: HELO not accepted from server: SMTP -&gt; NOTICE: EOF caught while checking if connectedLanguage string failed to load: tls

Callum at 2011-07-29 08:33:28

I understand that it applies to your specific use case. This is the first time I've heard of anyone setting a custom header. My question is whether or not it makes sense to include this functionality for all users of the plugin, or whether it's better to keep this change only for your version. I think for now I will leave it out. If other people request this feature in the future, I'll come back to this patch. Again, thanks for sharing.

Callum at 2011-07-29 08:34:39

Try disabling all other plugins. Is the error message the same? What is the exact error message? Can you post a link to a screenshot?

Maria at 2011-07-29 14:24:10

Hi, I installed your plugin &amp; the form seemed to crash as the email was submitted on my site. Even now i have un-installed the plugin the form still crashes! I am not blaming your plugin but is there any chance it would not fully un-install and how would I go about checking the code has been fully removed?

Callum at 2011-07-30 13:13:03

Ok, I tracked down your blog, and tried to recover your password so I could see the error myself. Then I copied the error message in your language and searched the zh_CN.po file for the exact English string, which allowed me to find out where the error is being generated. The wp_mail() function appears to be returning false. Do you have all other plugins disabled on the blog? Do you receive any other emails from the blog? Please answer each question specifically as I need all the information to figure out the problem. Please make a small change to the wp-login.php file so we can see exactly what is going wrong. Please replace lines 233 and 234 (delete those two) with the following: <code> if ( $message &amp;&amp; !$rslt = wp_mail($user_email, $title, $message) ) { var_dump($rslt); wp_die( __('The e-mail could not be sent.') . "\n" . __('Possible reason: your host may have disabled the mail() function...') ); }</code> This will output much more information about why the sending of the message failed. However, it will also reveal that information to anyone who tries to recover a password. I recommend you do the following: Copy wp-login.php to wp-login.php.orig Make the changes above Try to recover your password View source, copy / paste the entire source code, save in a text file This file will contain your email password, search for it, delete it, and then send the file to me privately by email Delete the modified wp-login.php and rename wp-login.php.orig back to wp-login.php If you are able to follow these steps, I will know much more information about what is causing this error.

Shannon at 2012-11-23 17:07:19

This plug-in would be exactly what I need...if I could get it to work. When I install it and go to the settings page it lists the two options "send via SMTP" and "use PHP" however there are no boxes to check off either option. In other words, I cannot select either option. I've tried redownloading, re-installing, deleting all the files etc. with no avail. An ideas? Maybe a compatibility issue with another plug in?

Michael at 2011-06-06 09:49:41

Hi I'm having troubles using your plug-in. when I ask to get a test email, it workd perfectly. when I'm using a contact form , I've a successfull sent meassage but I don't get anything..... Using Contact Form 7 to set up personalized forms, I'm getting email too. Do you know what's the issue? I'm using WP 3.2 , your 0.9.0 plug-in version with Striking theme 3.0 Thanks for your help Michael

Doug at 2011-08-08 18:24:32

I was having problems getting SMTP to work but found a solution and wrote it up <a href="http://news.smartlabsoftware.com/2011/08/08/fixing-wordpress-smtp-problem/" rel="nofollow">here</a>.

Callum at 2011-06-06 12:49:32

I don't understand your message. Your contact form does not work? I'm not sure why that is. WP Mail SMTP modifies how the wp_mail() function sends email. If the test email function works, and things like "Forgotten password" emails work, then the plugin is performing as expected. If there's an issue with a contact form, I'm not sure what might be causing the problem.

Michael at 2011-06-06 12:59:37

I don't understand either.... I've updated the striking theme and now I get all emails!!! the only thing I've done is to move from "inactive" to "active" the contact form widget. Sorry for the alert

Callum at 2012-02-24 16:56:27

You need to get the SMTP settings from your hosting provider and enter them into the plugin.

itamar at 2012-07-02 13:54:59

I followed google instruction but it still doesnt work

Branda at 2012-02-24 17:19:22

Thank you for getting back to me. I just did it, but had no luck... I don't know what to do anymore.

Callum at 2012-02-24 17:23:48

Your message contains absolutely zero actionable information, so there is precisely nothing I can do to assist you at this point. I recommend reading <a href="http://catb.org/~esr/faqs/smart-questions.html" title="Asking smart questions" target="_blank" rel="nofollow">this</a> for advice on how to ask for support in an actionable way in the open source space.

Branda at 2012-02-24 18:10:47

Try to find an answer by searching the archives of the forum you plan to post to. I did. Try to find an answer by searching the Web. I did. Try to find an answer by reading the manual. I did, at the WP site. Try to find an answer by reading a FAQ. I did. Try to find an answer by inspection or experimentation. I did. Try to find an answer by asking a skilled friend. I did. If you're a programmer, try to find an answer by reading the source code. I'm not. I think your plugin is a great idea, but unfortunately I couldn't make it work for me and nobody seems to able to help. My website's contact forms don't work.

Callum at 2012-07-02 14:10:13

Your account username and password were pasted in plain text in the debugging output you posted. I recommend you change that password immediately anywhere that you were using it. I have removed it now, but it was live for some time, and it's known at least to me. My question was not whether or not you had followed the instructions, but what the page says. The issue appears to be that your mail server is not accepting your password. That's outside the scope of this plugin. I'd suggest you contact your mail provider and ask them what they can do to help debug this issue. I know many users are able to use the plugin with gmail, so they are compatible.

Jan at 2012-01-23 22:03:39

Hi Callum, Just started using your plugin (v.0.9.1) but running into a (small) problem. Although I succeed in sending mails via Google SMTP, the 'From Email' value is always ignored (either the default value or an entered value), the 'From Name' however does seem to work. I therefore always receive the mails from the username used for authentication. Any thoughts on this behaviour? Thanks in advance.

Callum at 2012-01-23 23:35:19

I believe Gmail always overrides the From email address as a spam prevention measure. This question has been asked and answered before.

Callum at 2012-01-07 15:25:35

Most common error reported, it's probably our PHP settings, or your hostname is wrong.

Callum at 2012-01-07 15:26:48

Try the <a href="http://wordpress.org/extend/plugins//wp-mail-log/" title="Log all calls to wp_mail()" target="_blank" rel="nofollow">wp-mail-log</a> plugin to see what's going on. It'll log every call to wp_mail() which might help you understand where the issue lies.

Callum at 2012-01-07 15:23:43

I think contact form 7 integrates already. Otherwise, search the entire source code for occurrences of mail(). This regex might work <code>/mail\s*(/</code> for you.

Callum at 2012-01-07 15:22:32

If you want a useful reply, you'll need to share more useful information than that.

Glenn at 2012-03-11 19:41:27

Thank you. That was a helpful response. I have done what I proposed and while WP is in fact sending mail quite fine, your caution is absolutely right because I note I am not receiving notices of cron jobs of which I would usually get six a day. For now I'm going to leave it alone and hope that important stuff finds its way into the log files just because of a recent malware attack that still has me paranoid. Thank you for the great plugin.

Stefano at 2012-10-29 15:15:11

PlugIn works really well and it solved my email going into spam. :) I have only one problem. Sending the email trough my GMail account seems to overwrite the sender email information. Sender name is correct, text, subjet ok, but the sender email is overwritten. (it's a contact form so is always different) Any suggestion? Thanks

Stefano at 2012-10-29 15:39:27

BTW I installed your plug in for logging the mail activity and found out that seems that the sender parameter is not setted. At the beginning I read correctly: 'headers' =&gt; 'From: "stfn" ', But on "step 6" I have: 'From' =&gt; 's@csc.com', 'FromName' =&gt; 'stfn', 'Sender' =&gt; '', Do you think is the sender set to blank to be the problem? In this case how can I fix this setting even the "sender" as the "from" parameter?

Leigh at 2013-05-13 21:29:19

oh bother...the autoformating on the comments has edited out the parts to make my question clear... I am very sorry, I will try to send a screen shot of my question to the autoresponder.

Leigh at 2013-05-13 21:24:56

Thank you for your very fast email response! I am sorry that I was not clear enough, the from field in the plugin works GREAT.... I just want to take it one step farther... In a return email I see, www_maindomain_com What I want to see is www_SUBdomain_com I want to change the first part of the from line to no longer be our main domain but customize it for the user. I may be asking for something that is not possible, since we are using multisite. But it doesn't hurt to ask! Thank you so much for your time, I reallly appreciate wordpress developers like yourself! This makes working in wordpress a pleasure! Thank you Leigh

Callum at 2013-05-13 20:15:08

I'm not sure what you're asking. You repeated the same web address twice. I'm not sure what you want to change or what you're currently seeing. The From address will only override emails sent by WordPress with the default wordpress@domain.tld email address.

Leigh at 2013-05-13 20:06:36

Thank you for a wonderful plugin~ I am using in on a multisite install right now. It has saved me in so many ways! I love having the options panel in the subdomains so that it can be configured independently. And it helps so much when a user calls me and says…oops…I changed my password and I show them where they need to change it in their website too. I am more that satisfied with the functioning of it but would like to take it to the next “white label” level for my customers. Right now when I change the from email it will only replace the second part of the from email (in the ) as follows: http://www.realestatebroker.com It is ok now, but I would like to replace the http://www.realestatebroker.com part too! Just to give the subdomain user a more white label feel. like the following: http://www.lajolla.realestatebroker.com Is that possible even on a multi site? Or is that the default because they are using our email servers. (www.realestatebroker.com) I have read through your comments which were very helpful but still haven’t found a similar question to what I am hoping we can do! I am comfortable working in the config file, I just need to know what to look for to address this in the individual multisites. Blessings, Leigh

Callum at 2012-07-31 18:13:32

If you had the issue before and after installing the plugin, then your issue lies elsewhere, in which case I suggest you contact the site administrator or your web developer to assist.

Krysta at 2012-07-31 18:20:28

Okay thank you.

Krysta at 2012-07-31 16:34:58

When a form has been submitted by the user, they still receive the message on the website that says "thank you for your order" and their order is being placed. So all of that is working fine. But the email notifications that are supposed to be sent to the user AND to the administrator are not being sent out. This started happening about 2.5 weeks ago so I installed your plugin to fix this problem. Unfortunately, I can't seem to fix this, even with your plugin. So I'm not sure if there is something I am missing? I have a screenshot of the test mail message. Is there anyway I could send that to you? Or maybe give you my login and password for wordpress and have you take a look?

Callum at 2012-07-31 12:25:49

You can put the plugin in mu-plugins if you prefer. The plugin is automatically disabled if you activate it via options in wp-config.php. I don't understand your question about how to modify the lines, it's PHP code, so I suggest you have a PHP programmer assist you if required.

Callum at 2012-07-31 12:22:30

It's highly unlikely that the plugin itself, or indeed WordPress, is changing behaviour from one day to the next. When you say "not working", what specifically do you mean? Are there any error messages generated? What happens when you send a test mail if it's "not working"?

marikamitsos at 2012-07-31 12:18:59

Thank you. So actually. Copy lines 26-36 and change them like: WPMS_MAIL_FROM', 'From Email --&gt;myemail@mysite.com or WPMS_MAIL_FROM_NAME', 'From Name --&gt;MyName After that leave the plugin enabled, BUT how do I "disable the admin menu"? Do I have to put some code someplace?

Kirk at 2012-07-04 00:10:09

What should I be looking for? I can send you the whole log privately if that would help. The only reference to "from" that I see is in these lines: array ( 'date' =&gt; 'Tue, 03 Jul 2012 22:09:45 +0000', 'args' =&gt; PHPMailer::__set_state(array( 'Priority' =&gt; 3, 'CharSet' =&gt; 'UTF-8', 'ContentType' =&gt; 'text/plain', 'Encoding' =&gt; '8bit', 'ErrorInfo' =&gt; '', 'From' =&gt; NULL, 'FromName' =&gt; NULL, 'Sender' =&gt; '', 'Subject' =&gt; 'WP Mail SMTP: Test mail to email@address.com', 'Body' =&gt; 'This is a test email generated by the WP Mail SMTP WordPress plugin.', (where of course email@addres.com is my real email address).

Kirk at 2012-07-04 00:13:29

I also wanted to point out, if this helps, when I tried my email server(s) (Exchange 2010 and Smartermail 4) I have the null sender problem. When I tried my ISP's email server (which first goes through a Barracuda spam filter and then to a Linux server) I get the null sender problem. But if I use Gmail, then the from line shows the address of the account I'm authenticating with to Gmail, but not the from address specified in the config in WP_mail. For what that is worth.

Callum at 2012-07-04 00:29:22

Please send the log by email and I'll take a look. Gmail automatically sets some part of the sender address I believe, so that's probably why you're seeing different behaviour there.

Maysa at 2012-11-25 22:06:43

Hi Callum Thnaks the great plugin. Please, help-me... sorry my bad english. I use Wp-mail-smtp in Google Apps. smtp.gmail.com 587 Use TLS encryption Yes: Use SMTP authentication. Checked Set the return-path to match the From Email but return path email not return my customer mail.. only me (my@mail.com). Please, help!!! In Contact Form configurations (additional settings), i inform Reply-To: [your-name] thank e regards from Brazil Maysa Return-Path: [your-name]

Mircea at 2013-07-18 10:53:33

Thank you for your answer. I will ask the mailserver admin to solve the issue.

Mircea at 2013-07-18 10:53:49

Thank you for your answer. I will ask the mailserver admin to solve the issue.

rohit at 2012-09-25 14:45:01

when i send mail ..result shows successfull but gmail mail not send ?

rohit at 2012-09-25 14:56:57

theese error appears .... The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) SMTP Error: Could not connect to SMTP host. ..... sir,.............. what i do ?

Callum at 2012-10-29 06:24:46

There is no actionable information in your message. No error messages, no description of a problem, simply saying "it not run" does not allow me to help you.

Ha at 2012-10-29 03:23:45

Hi all, I using contact form 7 plugin, but it only run on localhost, when I upload to server it not run. Please help me. It's problem? Thank you very much.

Callum at 2012-11-04 12:02:59

The error message you posted says the mail() option was selected. Either way, there's some issue with your server, I suggest contacting your host.

lalita k. at 2012-12-08 01:17:52

SMTP HOST: mail.yogaastoria.com Port: 26 plugin is not working. i called up my webhost and they say to contact the plugin developer. please advise what is going wrong. thank you. lalita SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Callum at 2012-05-28 22:26:37

You can ask your host if they provide an SMTP relay, or you could use another provider.

Alex at 2012-06-14 18:49:56

Hey I'm using your plugin, and my "from" address is no-reply@etc.com, and using the proper smtp username/password the email is sent, but it's received saying the sender was my personal email, and I don't know what would cause this.

sadia fahim at 2012-07-18 23:30:49

How much you'll charge for it?

Callum at 2012-06-16 22:45:50

Then the issue lies outside WordPress and this plugin. I recommend asking your mail server administrator.

Callum at 2012-07-18 21:12:39

That's outside the scope of this plugin. You could modify the plugin's code to do that, but it's outside the scope of free support I provide.

Alex at 2012-06-16 20:32:32

I tried from a different client and it still said from my personal email.

Kirk at 2012-07-03 15:36:58

Using WP Mail SMTP 0.9.1 We have set up both the forms and the default settings with a legitimate default email address. However, the emails, when sent, using the form OR the test page, always send without a from name or email address. Quite literally, the debug log from the plugin page shows "["From"]=&gt; NULL ["FromName"]=&gt; NULL " Watching my SMTP server logs show successful authentication by the plugin, but blank email address and name as well. What/where should I be checking to get to the bottom of this?

Callum at 2012-10-14 18:13:08

Not sure why you're getting a "true" result, but here's the pertinent error message: <blockquote>ERROR: Failed to connect to server: (0)</blockquote> That's the single most common error, it's covered on the main plugin page. Your server config is the issue.

Rip at 2012-11-20 14:04:08

bool(true) The full debugging output is shown below: object(PHPMailer)#4203 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(132) "SMTP Error: The following recipients failed: ange.ripouteau@orange.fr SMTP server error: Relay rejected for policy reasons. " ["From"]=&gt; string(35) "webmaster.if@groupe-initiatives.com" ["FromName"]=&gt; string(21) "Initiatives Formation" ["Sender"]=&gt; string(35) "webmaster.if@groupe-initiatives.com" ["Subject"]=&gt; string(51) "WP Mail SMTP: Test mail to ange.ripouteau@orange.fr" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(27) "mail.groupe-initiatives.com" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp":"PHPMailer":private]=&gt; object(SMTP)#4202 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn":"SMTP":private]=&gt; resource(203) of type (stream) ["error":"SMTP":private]=&gt; array(3) { ["error"]=&gt; string(29) "RCPT not accepted from server" ["smtp_code"]=&gt; string(3) "554" ["smtp_msg"]=&gt; string(36) "Relay rejected for policy reasons. " } ["helo_rply":"SMTP":private]=&gt; string(125) "250-mail.groupe-initiatives.com Hello www.groupe-initiatives.com ([92.103.27.106]), pleased to meet you 250-HELP 250 SIZE " } ["to":"PHPMailer":private]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(24) "ange.ripouteau@orange.fr" [1]=&gt; string(0) "" } } ["cc":"PHPMailer":private]=&gt; array(0) { } ["bcc":"PHPMailer":private]=&gt; array(0) { } ["ReplyTo":"PHPMailer":private]=&gt; array(0) { } ["all_recipients":"PHPMailer":private]=&gt; array(1) { ["ange.ripouteau@orange.fr"]=&gt; bool(true) } ["attachment":"PHPMailer":private]=&gt; array(0) { } ["CustomHeader":"PHPMailer":private]=&gt; array(0) { } ["message_type":"PHPMailer":private]=&gt; string(5) "plain" ["boundary":"PHPMailer":private]=&gt; array(2) { [1]=&gt; string(35) "b1_677298044585ae514ca76859b3bb343c" [2]=&gt; string(35) "b2_677298044585ae514ca76859b3bb343c" } ["language":protected]=&gt; array(17) { ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_error"]=&gt; string(19) "SMTP server error: " ["empty_message"]=&gt; string(18) "Message body empty" ["invalid_address"]=&gt; string(15) "Invalid address" ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":"PHPMailer":private]=&gt; int(1) ["sign_cert_file":"PHPMailer":private]=&gt; string(0) "" ["sign_key_file":"PHPMailer":private]=&gt; string(0) "" ["sign_key_pass":"PHPMailer":private]=&gt; string(0) "" ["exceptions":"PHPMailer":private]=&gt; bool(false) } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER:220 mail.groupe-initiatives.com ESMTP Service (Lotus Domino Release 5.0.8) ready at Tue, 20 Nov 2012 17:03:03 +0100 SMTP -&gt; FROM SERVER: 250-mail.groupe-initiatives.com Hello www.groupe-initiatives.com ([92.103.27.106]), pleased to meet you 250-HELP 250 SIZE SMTP -&gt; FROM SERVER:250 webmaster.if@groupe-initiatives.com... Sender OK SMTP -&gt; FROM SERVER:554 Relay rejected for policy reasons. SMTP -&gt; ERROR: RCPT not accepted from server: 554 Relay rejected for policy reasons. SMTP Error: The following recipients failed: ange.ripouteau@orange.fr I have this message now. Any idea ??

Hanno Coetzee at 2012-06-06 08:06:05

Hi Callum. Thanks for the great plugin I am using it on different blogs and directories. I however have on problem on my site. When a visitor to the directory sends an email via the directory to one of my clients on the directory the mail goes out and the client receives the mail. The "from email address" however is the one from the directory ( or the default email) and not this of the client. Now when the advertiser on the directory wants to reply to the email, by hitting the reply button on his email client the reply mail goes to the directory and not the person who sent the mail. Is there a way to work around this, so that the reply address will be the one of the person who sent the mail via the directory. Help is much appreciated. Regards Hanno

Rip at 2012-11-08 09:35:06

But Send all WordPress emails via SMTP is selected... Well, thanks...

Tobias Nyholm at 2012-08-16 14:56:07

Hi. I wish the password field on the admin page was a instead of a "text" as it is now. I dont want other admins to see the password to my stmp server. //Tobias

Tobias Nyholm at 2012-08-16 14:57:11

Wordpress removed a html tag in my previus comment. Anyways.. use type="password" instead of type="text"

Callum at 2012-08-16 21:03:51

This is a fundamental misunderstanding of how password fields work, and this question has been asked and answered many times before. Even if the field was type="password", the password would still be visible in the source code of the page, or directly on the /options.php page. There is no way to encrypt the password because it must be used in plain text when connecting to the server. Therefore, it is better that the password be displayed in clear text so that the user is aware that there is no security in place.

Tobias Nyholm at 2012-08-16 21:32:16

I couldn't disagree with you more. You are saying instead of "kind of hide" the password you show it completely...? Do it properly then! Leave the password field blank. The fact is: I don't want to openly show my password to anyone... But, it is you plugin and you do whatever you like....

Callum at 2012-08-16 22:04:29

The choice is either to pretend the password is stored securely or to be upfront that it's totally insecure. I chose the latter. If you want the password saved more safely, put it into your wp-config.php file.

Simone at 2012-10-19 20:46:14

Hello! Your plug-in is very important for AWS EC2 users... I need to use SES service (Amazon SMTP) for a multisite installation. I configured the plug-in for the whole multsite (via wp-config.php) and it works for every e-mail except for the notification of registration... Can you help me to solve this? Thank you!

RyanO at 2012-11-05 16:41:29

I am using Formidable forms on one of my sites, and have been having issues with spam filters and users receiving notifications. I was looking around on Formidable boards and they suggested using an SMPT plugin. However, the problem I am having is when the plugin is enabled the notification spits out the HTML code in the email instead of building the email with HTML and sending that notification. Just wondering if you have ever herd of a similar problem and knew of any fix.

Callum at 2012-06-15 12:32:18

Is it a gmail / google apps account? I believe they automatically override the From address. It's possible your mailserver also does the same. Is the username you're personal email? If so, I'd guess that's where it comes from. Have you set your personal email anywhere in WordPress? If not, then it's definitely on the mail server. Try connecting to the mail server with a regular mail client (like Thunderbird) and sending an email, see if it works that way.

Sjors Visser at 2012-12-27 20:08:51

Subject: Change request WP Mail SMTP plugin Hi Callum, Thank you for giving us a great plugin such as WP Mail SMTP. I've been using the WP Mail SMTP plugin quite some time now and there is one thing I would like to ask you to change. The password for the username is visible. Is it possible to make it hidden (like with dots or something)? With Kind regards, Sjors Visser

itamar at 2012-07-01 18:14:06

hey, we have installed your plugin, and with one email it is working perfect but when we are trying to use our service mail (just anther mail of the site) we are getting this as a result: Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#100 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(35) "SMTP Error: Could not authenticate." ["From"]=&gt; string(22) "no-reply@affiliaXe.com" ["FromName"]=&gt; string(22) "affiliaXe Notification" ["Sender"]=&gt; string(22) "no-reply@affiliaXe.com" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to rafael@affiliaxe.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(22) "partners@affiliaXe.com" ["Password"]=&gt; string(12) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp:private"]=&gt; object(SMTP)#101 (7) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["smtp_conn:private"]=&gt; resource(134) of type (stream) ["error:private"]=&gt; NULL ["helo_rply:private"]=&gt; string(139) "250-mx.google.com at your service, [50.23.110.232] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES " } ["to:private"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "rafael@affiliaxe.com" [1]=&gt; string(0) "" } } ["cc:private"]=&gt; array(0) { } ["bcc:private"]=&gt; array(0) { } ["ReplyTo:private"]=&gt; array(0) { } ["all_recipients:private"]=&gt; array(1) { ["rafael@affiliaxe.com"]=&gt; bool(true) } ["attachment:private"]=&gt; array(0) { } ["CustomHeader:private"]=&gt; array(0) { } ["message_type:private"]=&gt; string(5) "plain" ["boundary:private"]=&gt; array(2) { [1]=&gt; string(35) "b1_4e35948136df713bc22ca2607223b90d" [2]=&gt; string(35) "b2_4e35948136df713bc22ca2607223b90d" } ["language:protected"]=&gt; array(17) { ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_error"]=&gt; string(19) "SMTP server error: " ["empty_message"]=&gt; string(18) "Message body empty" ["invalid_address"]=&gt; string(15) "Invalid address" ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count:private"]=&gt; int(1) ["sign_cert_file:private"]=&gt; string(0) "" ["sign_key_file:private"]=&gt; string(0) "" ["sign_key_pass:private"]=&gt; string(0) "" ["exceptions:private"]=&gt; bool(false) } The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER:220 mx.google.com ESMTP ch9sm34848140wib.8 SMTP -&gt; FROM SERVER: 250-mx.google.com at your service, [50.23.110.232] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES SMTP -&gt; ERROR: Password not accepted from server: 535-5.7.1 Please log in with your web browser and then try again. Learn more at 535 5.7.1 https://support.google.com/mail/bin/answer.py?answer=78754 ch9sm34848140wib.8 SMTP -&gt; FROM SERVER:250 2.1.5 Flushed ch9sm34848140wib.8 SMTP Error: Could not authenticate. NOTE: that i can login into the email account with the same user name and password. this was checked several times, and then again when entering a different user email and password it des work. please advise you can reach me at itamar [at] affiliaxe.c o om

Callum at 2012-07-03 19:31:49

Interesting, I'm not sure what's going on here. You still get no from name or email in the test mail function, if you leave those fields blank? Sounds like something quite strange is going on. Try using the <a href="http://wordpress.org/extend/plugins/wp-mail-log/" title="Log all calls to wp_mail()" target="_blank" rel="nofollow">wp_mail_log</a> plugin, it might shed some light on the situation. Please delete the log file after you've used it.

Kirk at 2012-07-03 18:26:02

I have tried using authenticated login to both an Exchagne 2010 server and a server running SmarterMail for the email server, and I get the same results from both.

Kirk at 2012-07-03 18:06:45

It is a single site install. I'm configuring it via the options page in WP. If I leave the from fields empty on the options page in WP, I still get the email with "null" for the from and from address at the server. The Web server is hosted by http://www.cartikahosting.com/ and is a linux server. PHP 5.2.17

Callum at 2012-07-03 16:37:27

Is it a MultiSite install? Have you set the options via the options page or via wp-config.php? What happens if you empty the from / from name settings? That should fall back to the defaults of WordPress and wordpress@domain.tld. What OS / web server / PHP version are you running?

Chip Royce at 2012-11-26 14:54:48

Hi; I'm having similar problems with Gmail and the plugin. I followed your instructions but getting the following: The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) The following From address failed: **********@gmail.com Thanks in advance!

Chris at 2012-07-05 02:29:44

Thanks. It suddenly started working this afternoon, but I'll book mark that link in case any problems come up.

Callum at 2012-07-04 21:08:57

Try using the <a href="http://wordpress.org/extend/plugins/wp-mail-log/" title="Log all calls to wp_mail()" target="_blank" rel="nofollow">wp-mail-log</a> plugin to get a better idea of what's going on.

Chris at 2012-07-04 19:37:16

I installed the plugin and the built in test works fine, but no emails are being sent for anything else. No emails for user comments, contact forms or other plugins. I have tried different email addresses. Any idea where the problem is? I'm having this problem on two wordpress sites.

Ann at 2012-10-26 19:30:37

No, I haven't tried this and I don't really understand it. So I should still set the SSL encryption? The funny thing is that forms are all going to Yahoo emails set up through their Yahoo hosting.

Ann at 2012-10-26 19:16:43

After a lot of trial and error, and referrals to Wordpress, and referrals to the plugin creator...I found that Yahoo hosting "discontinued their ability to use SMTP", therefore you can't use any of the SMTP options if you host with Yahoo. I've tried using the PHP options and the test emails go through, but none of the form emails. Still trying to find a solution.

Callum at 2012-10-26 19:18:28

Interesting. Have you tried using an external mail provider and connecting over SSL? For example, I connect to my own mailserver on port 443 for both incoming and outgoing mail, thus typically bypassing all firewalling, because it appears to be encrypted HTTP traffic.

Callum at 2012-10-28 17:20:15

Like I said, if you'd like to pay $99 I'll gladly assist you with your WordPress mail issues. But choosing a host and mail provider is well outwith the scope of support I provide for this plugin.

Ann at 2012-10-28 17:08:36

But Yahoo said they don't support SMTP anymore and this site is already being hosted by Yahoo.

Sarah at 2012-09-26 16:08:40

Thanks for a great plugin. Does it work with Microsoft Exchange email addresses? I have a client that has uses Exchange, but I'm not at all familiar with it. If the plugin works with Exchange, can you tell me where to get the settings in Exchange to use in WP Mail SMTP?

Callum at 2012-10-28 11:21:04

You need an SMTP service, most support SSL these days. Assistance setting that up is beyond the scope of plugin support. However, I'm considering trialling a new approach to support whereby folks can pay $99 per incident for detailed support. Would you like to trial that service?

Devra at 2012-08-09 15:57:11

I'm using GravityForms for several forms on my site. I am hosting with DreamHost and our email uses gmail aps. 98% of the time, all the notifications from GravityForms are received. But the user complains that sporadically, some notifications are not arriving. We use several different email addresses for the different forms, all using the site domain name. BTW, I have installed the email log plugin. In the hopes of stopping the sporadic non-delivery of notifications, I have installed your WP Mail SMTP plugin. Since the problem is sporadic, it is impossible to test for, so I want to make sure I have everything set up correctly. I used all the gmail parameters you recommended. My question is this: Since my various forms use different from addresses, will the plugin affect all form notifications, or will it only affect the email sent from the primary address I specify in the plugin settings? If the latter, do I then have to specify the same from address for all my GravityForms? Many thanks for your time. Devra

Stefano at 2012-10-31 14:01:05

Ok I can confirm you now. Used another SMTP that not overwrites and it worked perfectly :) CHeers!

Stefano at 2012-10-31 13:24:11

Thanks Callum. These days I've been talking to other guys and they all said the same, seems that is one of the things made on purpose to prevent from spam. Thanks again.

Callum at 2012-10-31 12:39:55

This is a commonly asked question. I believe Gmail overwrites the sender address for spam prevention purposes.

Callum at 2012-09-28 22:08:30

The connection timed out, this is the most common error message, and it's explained on the plugin homepage.

Callum at 2012-09-28 22:09:50

I recommend you install it and try. :-) The plugin speaks SMTP, if your mail server supports SMTP, it should work.

Joe at 2012-11-25 18:23:01

Hi, i used the plugin and can successfully send the test mail with gmail smtp settings. But it doesnt seem to work on those actual registration confirmation emails. What could be the cause of this, or how can it be fixed? Thanks

Adrian at 2012-10-12 14:41:49

I've got WP 3.4.1, and WP mail SMTP. I cannot send ANYTHING, eventhoug I've got the log: The result was: bool(true) A full log is here: Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#4368 (58) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(53) "The following From address failed: padis777@gmail.com" ["From"]=&gt; string(18) "padis777@gmail.com" ["FromName"]=&gt; string(26) "Konkurs Młodzi Przywódcy" ["Sender"]=&gt; string(18) "padis777@gmail.com" ["Subject"]=&gt; string(51) "WP Mail SMTP: Test mail to adrian.nowosz@interia.pl" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(496) "Date: Fri, 12 Oct 2012 13:35:05 +0000 Return-Path: padis777@gmail.com To: adrian.nowosz@interia.pl From: =?UTF-8?Q?Konkurs_M=C5=82odzi_Przyw=C3=B3dcy?= Subject: WP Mail SMTP: Test mail to adrian.nowosz@interia.pl Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" " ["SentMIMEMessage":protected]=&gt; string(569) "Date: Fri, 12 Oct 2012 13:35:05 +0000 Return-Path: padis777@gmail.com To: adrian.nowosz@interia.pl From: =?UTF-8?Q?Konkurs_M=C5=82odzi_Przyw=C3=B3dcy?= Subject: WP Mail SMTP: Test mail to adrian.nowosz@interia.pl Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" This is a test email generated by the WP Mail SMTP WordPress plugin. " ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "587" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(18) "padis777@gmail.com" ["Password"]=&gt; string(18) "poltheiticilpal120" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(5) "5.2.1" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#4369 (8) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; int(2) ["do_verp"]=&gt; bool(false) ["Version"]=&gt; string(5) "5.2.1" ["smtp_conn":"SMTP":private]=&gt; bool(false) ["error":"SMTP":private]=&gt; array(1) { ["error"]=&gt; string(37) "Called Mail() without being connected" } ["helo_rply":"SMTP":private]=&gt; NULL } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(24) "adrian.nowosz@interia.pl" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["adrian.nowosz@interia.pl"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_1585261ac24116c427847a831864380f" [2]=&gt; string(35) "b2_1585261ac24116c427847a831864380f" [3]=&gt; string(35) "b3_1585261ac24116c427847a831864380f" } ["language":protected]=&gt; array(17) { ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_error"]=&gt; string(19) "SMTP server error: " ["empty_message"]=&gt; string(18) "Message body empty" ["invalid_address"]=&gt; string(15) "Invalid address" ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(1) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(false) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: (0) The following From address failed: padis777@gmail.com I don't recive any test message. Please, help me, it's extreamly important. Regards

Rip at 2012-11-02 01:24:35

Yes, this is the message i have when i select "Send all WordPress emails via SMTP."

Aren Cambre at 2014-01-13 22:09:14

I am trying to use wp-mail-smtp on a WordPress network. Your documentation says "put your settings in wp-config.php and then disable the admin menu". How is this done?

Aren Cambre at 2014-01-13 22:16:16

Never mind, found it in the source code. You may want to clarify the docs to check the source code for this info.

matt at 2014-01-30 07:35:37

I also had one more question. How can I verify that that SMTP is in fact working?

matt at 2014-01-30 07:27:14

Hi, I just started using your plugin and it's great. I'm not sure if this has already been answered somewhere, but I would like to change the content of the email that is sent. It may be beyond the scope of your plugin, but do you know a way to accomplish this? Thanks!

Ricardo at 2014-01-14 17:15:02

Please, could you hide the password by default? Maybe using a password field instead of a text field. I don't know...

Laura at 2014-01-14 18:01:40

Hello I have downloaded and installed "visual form builder" and WP Mail SMTP v0.8. They both are great!, thank you for working on this plugging!. I just have a little bit of a thing, whenever I try the plugging it works perfect but send the e-mail to the dashboard under forms. I need it to send it to l.gutierrez@multilingualgroup.com. How can I do that?, thank you so much. I understand you are busy. But youtrhelp on this will mean a lot for me. Thank you and have a great day!

B at 2013-02-23 21:04:01

Hello, Thank you very much for sharing this useful plugin! I have a problem with the reset password functionality. No email is sent. This message appears: "The e-mail could not be sent. Possible reason: your host may have disabled the mail() function..." The registration email is sent correctly so the email settings are fine. Thanks B

Rip at 2012-10-23 13:12:12

Hello. I want to test you're plugin but I have this error after send a test : The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#4199 (53) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(36) "Could not instantiate mail function." ["From"]=&gt; string(32) "wordpress@groupe-initiatives.com" ["FromName"]=&gt; string(21) "Initiatives Formation" ["Sender"]=&gt; string(0) "" ["Subject"]=&gt; string(51) "WP Mail SMTP: Test mail to ange.ripouteau@orange.fr" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "mail" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; int(25) ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; int(2) ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(9) "phpmailer" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(3) "5.1" ["smtp":"PHPMailer":private]=&gt; NULL ["to":"PHPMailer":private]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(24) "ange.ripouteau@orange.fr" [1]=&gt; string(0) "" } } ["cc":"PHPMailer":private]=&gt; array(0) { } ["bcc":"PHPMailer":private]=&gt; array(0) { } ["ReplyTo":"PHPMailer":private]=&gt; array(0) { } ["all_recipients":"PHPMailer":private]=&gt; array(1) { ["ange.ripouteau@orange.fr"]=&gt; bool(true) } ["attachment":"PHPMailer":private]=&gt; array(0) { } ["CustomHeader":"PHPMailer":private]=&gt; array(0) { } ["message_type":"PHPMailer":private]=&gt; string(5) "plain" ["boundary":"PHPMailer":private]=&gt; array(2) { [1]=&gt; string(35) "b1_ad86ae797e8227bf63b0e31681089521" [2]=&gt; string(35) "b2_ad86ae797e8227bf63b0e31681089521" } ["language":protected]=&gt; array(17) { ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["execute"]=&gt; string(19) "Could not execute: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["from_failed"]=&gt; string(35) "The following From address failed: " ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["encoding"]=&gt; string(18) "Unknown encoding: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_error"]=&gt; string(19) "SMTP server error: " ["empty_message"]=&gt; string(18) "Message body empty" ["invalid_address"]=&gt; string(15) "Invalid address" ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":"PHPMailer":private]=&gt; int(1) ["sign_cert_file":"PHPMailer":private]=&gt; string(0) "" ["sign_key_file":"PHPMailer":private]=&gt; string(0) "" ["sign_key_pass":"PHPMailer":private]=&gt; string(0) "" ["exceptions":"PHPMailer":private]=&gt; bool(false) } Thanks in advance

Callum at 2012-10-23 13:20:01

Can you send mail without the plugin? It looks like PHP's mail() function is disabled on your host. Have you tried sending by SMTP?

Simone at 2012-10-23 14:15:18

wp-mail-log solved the problem. WPMU sends e-mail on the network administrator behalf, and not the subsite's admin. That was the problem. I can confirm wp-mail-smtp works correctly. Perhaps you could add this note on the next release, just before the config.php defines. :-) One note: setting define('WPMS_MAIL_FROM', 'somehing@aws-ses-authorized.xxx'); in wp-config.php confused me since I thought it was the From field, whereas now I understand it is the From field just of the Test e-mail. Is it useful to define it in wp-config.php, if the web interface is removed with define('WPMS_ON', true); thus prohibiting the sending of test e-mails? Anyway thank you very much!

Callum at 2012-10-23 14:56:38

The WPMS_MAIL_FROM setting is not for the test email, it's for any email that is sent by WordPress without modifying the From address. WP sends emails from wordpress@domain.tld, but for example, comment notifications are sent from the poster's email address, so one can reply directly to the person who posted. It doesn't make sense to override the from field in that case. If WPMU is sending emails from a different address, as in, not wordpress@domain.tld, then the plugin will not change the from address. I'll try to explain that more clearly in the documentation.

David at 2013-06-06 23:07:40

Hi bro, Thank you for a great plugin !! It works fine with the options via wp-config.php in Multisite but in my case i can send mails only from the main blog (root site) ,after the configuration my users (authors) can't send me any mail via their subdirectory blogs .....What could have happened?

Callum at 2013-03-18 20:56:50

I'm not clear on the purpose of logging wp_mail() calls with a lower priority. The function arguments should be logged as they were sent, to get the best picture of what's going on. Or maybe I'm misunderstanding what you mean. Can you give me a bit more detail?

Callum at 2013-03-18 20:58:07

I'm not sure what "sending mail through the website hosted locally" means. Can you explain that in a bit more detail?

mike edwards at 2013-03-18 20:35:02

I installed the pluggin wp mail smtp and tested it. The test mail was sent to destination e-mail. However when I try to send an e-mail throught the locally hosted site it says:Failed to send your message. Please try later or contact the administrator by another method. How can the test message works on the pluggin test but sending mail through the website hested locally does not!!

Merrin at 2013-05-08 01:38:55

I removed Gravity Forms and used Wufoo instead

Greg at 2013-03-18 13:24:55

Thanks Callum. The solution in the end was to reinstall the modules and recreate the contact form. After that it worked like a charm. Regarding the logging: yes, I found out it is not possible to record the result, but setting the logging to much later, correctly show me what was happening, so I would suggest doing that to your module. Thank you for your response!

Mark at 2013-05-28 12:54:16

My test email is escaping all apostrophes. E.g. Email From is: Catherine\\\'s Cushions.... and the subject and body both read Catherine\'s Cushions. What can I do to sort this? Thanks...

Mark at 2013-05-28 13:15:01

I have checked and disabled magic_quotes which has helped to reduce the escape character replication but I'm still getting one in every instance of an apostrophe...

Callum at 2013-01-20 13:13:22

Great, thanks for letting me know on that. I'll do a little research into what causes the conflict and update the FAQ.

Doug Lerner at 2013-11-28 01:30:08

I hope I'm not posting a duplicate question. I did search first. Anyway, my "test mail" to myself after configuration returns with this error message: ["ErrorInfo"]=&gt; string(90) "The following From address failed: doug@lerner.net : Called Mail() without being connected" I am using Gmail Google Apps and have the settings as recommended (in fact exactly as in my mail client): smtp.gmail.com SSL on Authentication: on Port 465 (also tried port 587) username: my email address password: my password I'm running WP 3.7.1 and WP-Mail SMTP 0.9.3. Any thoughts? The reason I was interested in this is because lately Subscribe2Html which send my posts out doesn't reach a few Gmail users (including me!), and my hosting site suggested I might try using SMTP instead of the PHP email I have been using. Thanks, Doug

David at 2013-06-15 17:42:20

Yest , the test mail works.

David at 2013-06-16 10:52:53

In my Multisite installation "wp mail smtp" doesn't work only for that plugin...can you help me please?

Marcelo at 2013-07-04 15:43:40

How can I do to put From Email the email of the sender in my form? and in the From Name the name os the sender?

Callum at 2013-07-04 15:45:16

I'd guess you need to look at the form plugin you're using. This plugin only changes the way emails are sent, nothing else.

Callum at 2013-06-17 01:37:48

Try adding some debugging output to your code. If emails are sending normally, then the issue might lie with the way the code constructs the message. Maybe the from headers are causing the message to be rejected by your mail server?

David at 2013-06-17 02:05:21

thanks bro ,I removed some plugins and I solved the problem ;) thanks for your help and for your fantastic plugin!

earl at 2013-01-05 06:49:13

I can you help. Emails seem to be not sending to hotmail or any other Microsoft related emails. This makes me wonder if the server in on the blocked list? can you have a look? or is there another issues thanks earl

Marcelo at 2013-07-04 15:52:08

Im use sendmail.php into the wordpress. But if I leave black options i recieve the email with FROM: worpress@domain.com

Callum at 2013-07-04 16:16:32

By default, WordPress sends emails from <code>WordPress&lt;wordpress@domain.tld&gt;</code>. You can override those in the options page. If your plugin / code / whatever is trying to send emails from somebody else, then WP Mail SMTP won't change them. You need to look elsewhere, the answer is not in this plugin.

David at 2013-06-13 22:07:29

I have a plugin that my users use to send emails in multisite with the php mail () function, but when I activated wp mail smtp via wp-config no longer has sent emails. my plugin uses this code: public static function send_email($details) { // get email text $emailtext = get_option('email_message'); $emailtext = str_replace("[FIRST_NAME]", $details["first_name"], $emailtext); $emailtext = str_replace("[LAST_NAME]", $details["last_name"], $emailtext); $emailtext = $emailtext . "message mail" . $details["download_link"]; // fantastic, now send them a message $to = $details["email"]; $subject = "My subject "; $message = $emailtext; $headers = 'From: '. get_option('download_email_from_name') .' ' . "\r\n Reply-To: " . get_option('download_email_from_name') . ' ' . "\r\n X-Mailer: mydomain.org"; wp_mail($to, $subject, $message, $headers); } thanks for the help

Melissa at 2013-01-05 21:11:13

Great plugin and works like a charm with Gravity Forms. Is it a plugin fix with yours or GF to send not only the the form data with field labels to the 3rd party email but to also include the form data as an attachment?

Greg at 2013-03-11 22:03:29

Hi Callum, Firstly, thanks for writing a decent tool to manage the smtp settings. I installed it but for some reason I can get a test email send to work, but not the site contact form. I've also installed your log plugin, but that doesn't reveal any issues or errors. I also had to change its priority to last because with a 1 priority, it runs BEFORE you have configured the SMTP settings for phpmailer. Not sure how to get wordpress to actually log the smtp mail send errors. A little frustrating! Any help would be appreciated! Greg

Youri at 2012-12-05 06:21:04

Hello! How can I use NTLM and/or GSSAPI authentication in wp_mail() under Windows/WAMP installation? Anyway thanks for your very useful plugin.

Mircea at 2013-07-16 11:04:18

Hi, I am using your plugin but I have an issue when trying to set a different from email address than the one that it is used as SMTP authentication. Basically if I change the email header I receive the following error using the test from the settings of the plugin: The SMTP debugging output is shown below: SMTP -&gt; FROM SERVER:220 ***.*********.com ESMTP Exim 4.80 Tue, 16 Jul 2013 08:49:22 +0000 SMTP -&gt; FROM SERVER: ***.*********.com Hello www.***********.com 250-SIZE 20971520 250-8BITMIME 250-PIPELINING 250-AUTH CRAM-MD5 PLAIN LOGIN 250-STARTTLS 250 HELP SMTP -&gt; FROM SERVER:250 OK SMTP -&gt; FROM SERVER:550-Unexisting, forged or unallowed sender address 550-(wordpress@*******.com) used with authenticated connection 550 (contact@*********.com) SMTP -&gt; ERROR: RCPT not accepted from server: 550-Unexisting, forged or unallowed sender address 550-(wordpress@*********.com) used with authenticated connection 550 (contact@*********.com) If I will put the contact@*********.com in the From Email field then everything works perfectly. Do you happen to know what is happening? I need to send the emails with different from email fields in order to ensure that the reply will go back to the sender and not to contact@*********.com. Thanks in advance for your help.

Richard C at 2012-12-06 08:08:10

Hi Callum, Really thankful for your plugin, I think I have it working well, but I'm running into a small problem. All test emails work perfectly, then when I test the Gravity Form on the site with my personal email as the recipient, again it works perfectly. I then change it my clients email and they do not receive anything. I can see on my host providers webmail an email that says No Such User Here. I dont understand why my email is fine yet theirs isnt. If you have any ideas, I would appreciate any tips you have. Thanks again.

Callum at 2013-01-26 13:03:37

Interesting. It times out consistently until you reboot? Sounds like a server issue to me, but that's just a guess, and I know absolutely nothing about Windows servers, so not sure what to suggest. If you were on *nix I'd suggest trying to connect to the mailserver with telnet while it's in the timeout state, and see if that works. If telnet also fails to connect, it's probably server wide. If it doesn't, maybe PHP specific. I'd guess that's how I'd proceed, test various things trying to narrow down which part of the stack is the issue.

Callum at 2013-05-02 10:12:41

You're using port 587? Port 25 is often blocked.

Merrin at 2013-05-02 00:50:29

Hi, I checked with our website host and they ran a test and confirmed that outgoing connections were not blocked. I also double checked the mail settings: http://windows.microsoft.com/en-AU/windows/outlook/send-receive-from-app and all is correct. Any other ideas?

Philip at 2013-01-26 04:40:48

Great Plugin - Works great... I have an issue where once every few weeks. I will get a timeout connecting to mail server (from the test). I reboot the web server (windows) and then everything works great again... any thoughts as what could be causing the issue or what to monitor

Callum at 2013-03-16 22:30:10

It's meant to run early so as to catch all calls to <code>wp_mail()</code> I think. It's only supposed to log calls to the function, not results, as far as I remember, it's been a while! I'm not sure if you can log the SMTP mail send errors. Does your mail server reject emails if they have the wrong sender address? Could be that the contact form is changing the "From" to be the submitted instead of WordPress. Try changing the "From email" on the options page and then sending another test message to the same email address as the contact form. Also, check if the contact form plugin uses <code>wp_mail()</code> at all, or if it calls <code>mail()</code> directly or has its own delivery method.

Polantis at 2013-11-12 16:09:51

Hi, your plug-in doesn't update correctly with WordPress 3.7.1. I'm getting "Could not remove the old plug-in" error message when I try to update. Please advise... Thanks!

Callum at 2013-11-28 10:44:59

I'm assuming that you are sending to your own address with the test function. If you do that, most likely your mail server accepts it. It's not so much a bug as a misunderstanding of the SMTP protocol. It could definitely be clearer on the admin page though. I'll add something to make that more obvious.

Callum at 2013-11-28 10:46:42

I guess your issue relates to sending email to your own address via your own server. That usually works without authentication, but you can't send mail to anywhere through your own server without authentication (otherwise your server would be used by spammers).

Callum at 2013-11-28 10:47:09

It's all about the settings of your mail server. Gmail does not support this for example.

Callum at 2013-11-28 10:49:41

Gmail is funny about relaying messages where the "From" address doesn't match your gmail address. I think it just changes the from address, or maybe it doesn't allow the messages. Are you using two factor authentication? If the SMTP settings are correct, and any mails get through, the issue lies with the mail server. Otherwise, maybe your web server doesn't allow outgoing connections.

Doug Lerner at 2013-11-28 10:56:53

Thanks for your response. In my case, the Gmail address and the from address are the same - just my personal email address. I am not using two-factor authentication. Just ordinary username and password. Note that with the plugin turned off, email sent from my WP blog generally works ok. But there are a few addresses (including my own!) which simply do not receive the mail. So it was suggested by various people, including my web host, that I try to relay via an SMTP server instead, as your plugin does. So you think I should ask the host of my web server if outgoing connections are being disallowed? Thanks, Doug

Merrin at 2013-05-07 01:41:09

Yes I have tried port 587, nothing worked so I have found another solution. Thanks for your help.

Callum at 2013-01-13 12:40:13

This has been asked and answered many times.

Callum at 2013-01-13 12:41:32

Maybe you have the wrong mail server settings? Or your host blocks outgoing connections from PHP? The plugin is unlikely to be the issue, it only activates features already shipped with WordPress.

Callum at 2013-01-13 12:42:03

Not sure what your issue is here, probably related to mail server configuration / settings.

Callum at 2013-01-13 12:42:54

Not sure, are they supported by PHPMailer? Otherwise you'd need to use your own mailer, etc.

Callum at 2013-01-13 12:43:54

Problem with your host, the single most commonly reported error, did you read any of the help pages?

Callum at 2013-01-13 12:44:25

Google do this on purpose to prevent spam. You cannot use gmail to send emails except from a gmail address.

Callum at 2013-01-13 12:45:06

Try the <a href="http://www.callum-macdonald.com/code/wp-mail-log/" title="WP Mail Log" rel="nofollow">WP Mail Log</a> plugin to see what's going on with those emails.

Callum at 2013-01-13 12:45:59

Apologies for the slow response. This sounds very interesting. Can you check your PHP error logs? Is there any info in there? Which other plugins do you have installed? What operating system / Apache / PHP version is your server running?

Callum at 2013-01-13 12:47:13

The message is self explanatory. The server is rejecting the message because you can't use that server to send email. Maybe you're not using SMTP authentication, or maybe you're using the wrong mail server.

Callum at 2013-01-13 12:49:19

I'm not sure, the issue is between your mail server and other mail providers, absolutely nothing to do with me or the plugin.

Callum at 2013-01-13 12:50:01

WP Mail SMTP doesn't change the actual content of the message in any way. The issue you're describing is most likely related to Gravity Forms.

Maysa at 2013-01-13 20:54:43

Thank you! Regards from Brazil

Callum at 2013-06-07 01:56:15

I'd need more information to help debug your issue. The plugin should function across all sites on a single installation if you've configured it via wp-config.php. The settings should apply to every blog, all the same. Have you set a From address and From Name, or only the SMTP settings?

Callum at 2013-09-26 21:15:18

This has been asked and answered many times, you misunderstand the whole topic.

Joop Ringelberg at 2012-12-29 02:10:56

Hi, thanks for your plugin, it works like a charm. I used it to make Easy Contact Forms work through the google smtp server. However, the html emails that this plugin sends, arrive with a content-type=text/plain header, hence do not show up nicely. Have you heard about this issue before and do you have any suggestions? Thanks in advance, Joop

Callum at 2013-05-07 12:26:33

Glad you've found a working solution. Out of interest, what was it that worked for you in the end?

Anastasia at 2013-03-05 00:49:59

Hi, Callum! I've installed the plugin and made all settings (smtp options taken from my hoster), but attempt to sent a test from the page ends with white screen. No error messages, just the screen of death. This screen appears both at smpt and php mailer options chosen... What could be a problem at?

Martin at 2013-01-16 10:17:43

The 'activate' link is just redirecting to my main blog page. If I go back into plugin options, the plugin is not active. Any pointers on how I can start debugging this, does the activate process write to a log file somewhere? (I can deactivate/activate other plugins...) Thanks.

Callum at 2013-01-16 13:14:36

Very interesting. That might happen if there is some kind of PHP error. Can you check your PHP error log and see if wp-mail-smtp is mentioned in there anywhere? The plugin file is called wp_mail_smtp.php by the way, underscores as opposed to dashes. Only other suggestion is to try uploading the plugin again (maybe by hand if you installed it with the installer). What operating system / web server / PHP version are you running?

Anastasia at 2013-03-05 15:34:45

Yes, Callum, everything works fine. Thank you. The problem with connection suddenly dissapeared after switching between WP-mail and mail and back. I can't expalin it, but am happy it works )))

Callum at 2013-03-05 14:20:30

Sounds like progress. The memory limit error is a strange one, not sure if it's connected or not. Have you got email working now?

Callum at 2013-06-14 13:23:10

Does the test mail work?

Callum at 2013-03-05 01:08:25

I remember seeing this issue before. Try searching back on the old comments here. Use ctrl-f or apple-f in your browser.

Callum at 2013-03-05 01:09:18

Woohoo, a real question with a real problem! Don't know what the cause it, but the answer lies in your PHP error logs. That's the only place to diagnose the dreaded WSOD unfortunately! Let me know what you find in there and I'll do my best to help...

Anastasia at 2013-03-05 03:51:20

Currently I see only this in the logs (appears when I try to send test): ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '78.27.153.48', file '/sata2/home/users/b2bbtl/www/www.b2b-btl.com.ua/wp-admin/admin.php', line 109)

Anastasia at 2013-03-05 04:02:36

Turning on fsockopen in php settings helped. Now I have "cannot connect to server" error, which is in your faq.

Martin at 2013-01-17 08:51:37

Hi, Callum. There was nothing in the php or debug logs. By a process of elimination I discovered that this plugin was causing the problem: http://matthewpavkov.com/wordpress-plugins/wordpress-firewall-2.html The security filter which was messing things up was: Block WordPress specific terms (wp_, user_login, etc.) in application parameters. Thanks. Looking forward to getting email from my blog :-)

Callum at 2013-12-10 12:04:42

Sorry, thought I'd replied to this already. You're sending emails via Google's SMTP server's and you're using authentication? Or you're sending via your hosting company's SMTP servers? If the from address is your Google Apps address, then that might explain why the notifications reach you but not the other addresses. Did you find a solution in the end?

Callum at 2013-12-10 12:08:05

Word of warning, Gmail will force the "From" address to be your Gmail address, no matter what. So you can't send an email to you that appears to be "From" somebody else (via a contact form for example). Could be that your host blocks the port. Or maybe blocks all outgoing connections. Google's SMTP servers require SSL, so it's also worth checking that your server supports outgoing connections over SSL.

Doug Lerner at 2013-12-01 06:17:22

Putting aside sending via Gmail for the moment, I changed the settings to use SMTP again, and am sending them through a "regular" hosted SMTP server for another account I have. This time sending via SMTP works. But I'm back with the original problem I had when I began looking at SMTP plugins. For some reason, everybody gets my blog notices except my mother and sister. The three of us are in a Gmail apps account with a private domain (my lerner.net domain). My notifications arrive, but theirs just don't. They aren't in spam either. My web host looked at the logs and they show they are being delivered. I was hoping that using this would help solve this problem, which I think was caused by PHP mail, but I guess it doesn't. Any tips-or-tricks you can think of? Thanks, Doug

Philipp at 2013-12-01 09:32:34

Hello, I am trying to get my website to send emails from my gmail account, it seems impossible, I know my host is blocking because of "spoofing" and when I try to send through SMTP i get SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) I am 99.9% sure my settings are correct, could it be that the host is blocking port 587 for gmail?

Callum at 2013-12-10 12:09:36

Sounds like you'd need to check with your server admin. Your PHP doesn't seem to have SSL support, the server admin would need to add it.

Callum at 2013-12-10 12:09:57

No idea what the issue you're having is. You'd need to supply more information before I could help.

Doug Lerner at 2013-12-10 12:44:16

Hi. No, I never found a solution in the end. I can't send from my blog via SMTP using the Gmail servers. And my mother and sister don't receive my blog notifications - though some other people who use Gmail do. It remains a mystery to me. Thanks, doug

Merrin at 2013-04-23 06:13:58

Hi, I am having a lot of trouble her and I hop you can help. I have several websites set up: The emails are being hosted on live.com and the websites are hosted on Dreamhost (I did not set this system up) I am using Gravity forms and not getting notifications. The issue is I don't know what settings to put in the advanced email ioptions. When I put smtp.live.com I get SMTP -&gt; ERROR: Failed to connect to server: (0) The following From address failed: thana@digitalkonnection.com If I put in smtp.digitalkonnection.com I get SMTP -&gt; ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) The following From address failed: thana@digitalkonnection.com If I use mail.live.com I get SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110) and sometimes SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111) The following From address failed: thana@digitalkonnection.com It says the test message was sent (TRUE) but I never receive anything I've tried all sorts of combinations with the check boxes and nothing seems to work! http://awesomescreenshot.com/0e7170tb9e Can somebody please help me?

Callum at 2013-04-23 09:12:08

Unfortunately <a href="https://core.trac.wordpress.org/ticket/23642" title="Bug in WordPress, due to be fixed in 3.6" target="_blank" rel="nofollow">a bug</a> in WordPress means that it always reports success. Thanks for the screenshot, very helpful. You almost certainly need to change the port number from 25 to something else, depending on which server you're using. I'd guess that's your issue as many hosts block port 25 to stop indiscriminate spamming. If the correct port number doesn't work, let me know and I'll have another look.

Merrin at 2013-04-24 01:07:31

Hi Callum, thanks for your reply. I have tried port 587 also but with no luck. Any other port I should try?

Callum at 2013-04-24 07:34:22

You need to try the correct port for the mail server. So you need to check with the mail server admin what port to use. It's usually provided along with the other information. If using the correct port doesn't work, you could try contacting your host and ask if outgoing connections from PHP are blocked. That might be the underlying cause of the issue.

Philip at 2013-02-01 03:08:31

Just an FYI follow up to this. As you suggested I tried to telnet to the mail server when it was in this "hung" mode and the telnet connection failed. (I tested from another machine at the same time and it worked) So it suggests to me that it is server issue...perhaps a firewall issue. I will continue to test and post when I find answer.

SJ at 2013-12-27 02:47:20

Hello @Simone, Can you share your solution for the multisite? I will be glad if you could share how you made it work with Multisite setup. I am not seeing any instructions regarding Multisite in the FAQ section of the plugin's page in WordPress repository. Currently, I am using a plugin named-wp-multisite-smtp for the multisite setup https://github.com/rohmann/wp-multisite-smtp

SJ at 2013-12-27 03:25:59

I have configured the plugin for multisite and edited wp-config.php as instructed. I set my gmail account. But the registration confirmation mails still sent from my web-host. I don't know the problem here. These are the lines: ======== define('WPMS_ON', true); define('WPMS_MAIL_FROM', 'contact@mysite.com'); define('WPMS_MAIL_FROM_NAME', 'Contact'); define('WPMS_MAILER', 'smtp'); // Possible values 'smtp', 'mail', or 'sendmail' define('WPMS_SET_RETURN_PATH', 'false'); // Sets $phpmailer-&gt;Sender if true define('WPMS_SMTP_HOST', 'smtp.gmail.com'); // The SMTP mail host define('WPMS_SMTP_PORT', 465); // The SMTP server port number define('WPMS_SSL', 'ssl'); // Possible values '', 'ssl', 'tls' - note TLS is not STARTTLS define('WPMS_SMTP_AUTH', true); // True turns on SMTP authentication, false turns it off define('WPMS_SMTP_USER', 'myemailaddress@gmail.com'); // SMTP authentication username, only used if WPMS_SMTP_AUTH is true define('WPMS_SMTP_PASS', 'mypassword'); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true ========

SJ at 2013-12-27 03:29:46

If I use the plugin for multisite, should I also update these manually?:? ==== global $wpms_options; // This is horrible, should be cleaned up at some point $wpms_options = array ( 'mail_from' =&gt; '', 'mail_from_name' =&gt; '', 'mailer' =&gt; 'smtp', 'mail_set_return_path' =&gt; 'false', 'smtp_host' =&gt; 'localhost', 'smtp_port' =&gt; '25', 'smtp_ssl' =&gt; 'none', 'smtp_auth' =&gt; false, 'smtp_user' =&gt; '', 'smtp_pass' =&gt; '' ====

Marce at 2014-10-06 15:21:44

Hi Callum Does the plugin support office 365? No matter what I try I can't connect to the server. Thanks Marce

Julie at 2013-10-28 20:44:44

Hi. I posted a question several weeks ago and it seems to have disappeared. From what I understand, properly configuring the WP Mail SMTP plugin will ensure all emails are sent securely automatically. My form plugin has wp_mail in the code. How do I test to see if the emails are passing through secure servers? Can the host be set to mail.simco-apts.com? Will selecting SSL change port 25 to the SSL port of 465? Thx.

Bob at 2014-02-20 09:58:27

I'm having trouble with the reply-to address. From address is set to service2@customerthink.com. When I send out a test email, the from address is fine, and if I hit reply the reply-to address is the same. So far, so good. But, when I test real comment notifications (core WP function) to the post author, the from address is ok (service2@...) but the reply-to address is the commenter. This is a security issue, because the commenter won't expect to get an email directly from the post author if he happens to hit reply and send. I've checked the box "Set the return-path to match the From Email" and it doesn't help. The reply-to is the commenters, not the from address. Thanks, Bob

kareem at 2014-02-20 13:53:57

i cant send email after change the host and domain ... please help ... Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#451 (65) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(27) "kareem.moh.khalil@gmail.com" ["FromName"]=&gt; string(16) "Don't Smok EGYPT" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(54) "WP Mail SMTP: Test mail to kareem.moh.khalil@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(478) "Date: Thu, 20 Feb 2014 12:51:38 +0000 Return-Path: kareem.moh.khalil@gmail.com To: kareem.moh.khalil@gmail.com From: Don't Smok EGYPT Subject: WP Mail SMTP: Test mail to kareem.moh.khalil@gmail.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(27) "kareem.moh.khalil@gmail.com" ["Password"]=&gt; string(9) "Km1121990" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(5) "5.2.4" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#450 (11) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["Version"]=&gt; string(5) "5.2.4" ["smtp_conn":"SMTP":private]=&gt; bool(false) ["error":"SMTP":private]=&gt; array(1) { ["error"]=&gt; string(38) "Called Reset() without being connected" } ["helo_rply":"SMTP":private]=&gt; NULL } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(27) "kareem.moh.khalil@gmail.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["kareem.moh.khalil@gmail.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_2faaa226d39aa033555bb523b7f71c07" [2]=&gt; string(35) "b2_2faaa226d39aa033555bb523b7f71c07" [3]=&gt; string(35) "b3_2faaa226d39aa033555bb523b7f71c07" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP Connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Permission denied (13)

Ralph Barbagallo at 2014-02-18 23:27:43

When I try to activate this plugin, it kicks me out of the administration dashboard.

Pao at 2013-09-18 11:49:05

Hi, I installed your plugin WP-Mail-SMTP with gmail and it worked fine. Now I got already 2 Email where I can't see the Email-Address where I should replay. It means that I just see MY EMAIL and I cannot replay to the question. Are the Email saved somewhere? Can I found out the needed Email of the customer? Thanks a lot for your help, I really would need to replay to this email. Paul

Angi at 2013-10-22 17:07:58

I think your comment below might work, but I'm not sure how to make this change in woocommerce- what file do I modify? I have been going through and can't tell what php file makes email happen. Any tips are welcome! :) Thanks for the great plugin! No email from plugins? If you’re using plugins to send email, these plugins will ignore the SMTP settings if they call PHP’s mail() function directly. If you see the function mail() and not wp_mail() in the plugin’s source, that’s the problem. You should be able to simply add wp_ in front of the existing mail command and it will probably work! (Insert lawyer-speak no warranty blurb here!)

Raj at 2014-06-13 08:29:12

i need used to front end..plz help me how to use front end ..wht is shortcode.?

David at 2014-05-29 11:32:34

Hi Callum, thank you for your plugin. Can I set reply-to for all email? Where I can set it? Thank you David

Callum at 2014-01-30 12:26:18

You're correct, beyond the scope of this plugin.

Callum at 2014-01-30 12:26:41

There is a test email function. Otherwise, you could check mail server logs, that's probably the most reliable method.

Callum at 2013-11-28 19:08:27

The test email function calls <code>wp_mail()</code> and that's it. There's no magic to it. For a long time, the <code>wp_mail()</code> function returned true whether the mail was sent or not. I think that bug has now been fixed in WP core. If you're using code>wp_mail()</code> in your plugin, the result should be exactly the same as the test email function.

Callum at 2013-11-02 10:35:56

Apologies, I just pushed a new version 0.9.3 which should fix this issue. Please let me know if you have any further issues.

Callum at 2013-11-02 10:37:03

Thanks for the link, apologies for the issue. I've pushed a new version 0.9.3 now which should fix the problem. Please let me know if you have any further issues.

Callum at 2013-11-02 10:38:30

Apologies for the issue. I just pushed version 0.9.3 which should fix this problem. Please let me know if you have any further issues.

Dwight Taylor at 2013-11-02 03:33:26

The latest version of this plugin causes errors with the latest version of Wordpress. Lines 109 and 150 contain bad syntax for function calls that will prevent wordpress from loading a web site once the plugin is updated to version 0.9.2

Robert Lilly at 2013-11-01 23:46:23

Please check the support forum on wp.org: (http://wordpress.org/support/topic/error-since-update-in-wp-mail-smtpwp_mail_smtpphp-on-line-109?replies=6). This update is killing sites. Had to revert to to 0.9.1 to get my site to work again. Thanks!

Dustin W. Stout at 2013-11-01 22:06:05

Hi Callum! I updated your plugin about 10 minutes ago and right after I did I was unable to access anywhere in my WP Dashboard. I had to go in through FTP and delete the plugin.

Dustin W. Stout at 2013-11-01 22:07:57

When I tried to upload and activate it again, this is what I got: Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /opt/bitnami/apache2/htdocs/wordpress_youthg/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php on line 109

Doug Lerner at 2013-11-29 00:32:11

A followup. I had my web host provider look at it. They tweaked permissions or whatever on their end, but were not able to get it to work. However, if I switch the setting to "Use PHP Mail" it does work. But is there any point in doing that? Doesn't that mean I'm back to where I started and not using SMTP at all? Thanks, Doug

Callum at 2013-11-29 00:44:21

If you use the mail() setting, you can still use the from name and email settings, but the rest is ignored. You're probably back to the position you were in before you started in terms of jail delivery, yes.

Doug Lerner at 2013-11-29 03:06:39

Interesting. What I am seeing is: (1) With your plugin enabled and PHP mail selected this time the mail that was not arriving at my personal address is arriving. So something about your plugin is helping, even though SMTP is not selected. (2) However, the from name I selected in your plugin "Doug's Blog" is not name on the sent mails. The name on the sent mails is just "doug". I'm confused. :) doug

Callum at 2013-08-31 16:17:26

Thanks for the translation. I'm working on an update, I'll pick up those bugs in it.

o6asan at 2013-08-31 16:46:27

Thank you for your reply, Callum. &gt; I’m working on an update, Oh, it is a very good news for me. I am looking forward to having the new version. If you need new translation files for it, please tell me by a private email.

Adam Conway at 2013-11-29 10:35:34

The Test Email function may use wp_mail, but it (or something else) must have created a global PHPMailer object before calling wp_mail. The Test Email function uses a debugging version of PHPMAiler (i.e. with exceptions allowed). wp_mail uses the existing PHPOMailer if it exists and otherwise creates one with exceptions not allowed. As I said in the original post, if we allow exceptions (i.e. if I change the "$phpmailer = new PHPMailer( true )" to "$phpmailer = new PHPMailer( false )" in wp_mail then my wp_mail calls work as well. But with wp_mail as it stands they don't. If I set debugging code in wp_mail I see that the PHPMailer object used when Test Email calls wp_mail was created as "$phpmailer = new PHPMailer( false )". wp_mail creates with true so the object must have been created before the wp_mail call. The problem is that this changes the functionality, including whether or not the mail actually arrives!

Callum at 2013-11-29 11:35:39

You're absolutely right. The code in <code>wp-includes/pluggable.php</code> has changed, and now the <code>PHPMailer()</code> object is instantiated differently than it used to be. I'll update the plugin and push a new version now. Those two were (and should be) identical. I need to instantiate the <code>PHPMailer</code> object in order to set the SMTP debugging in order to get the output. Enabling debugging shouldn't change how the mail is sent, but instantiating the object differently may well make a difference. Thanks for the bug report. Apologies if I was overly dismissive, I get an awful lot of "my server no work, help" type emails about the plugin, and many from folks who seem to forget that the code was free! :-)

Adam Conway at 2013-11-29 11:56:23

Thanks! I am aware that the code is free (and very much appreciated!). My initial report maybe should have been clearer. As a side note, this forum doesn't seem to cope with threads this long very well... :)

Callum at 2013-11-29 12:04:41

Yeah, nested comments get a bit out of control. So, I've looked into this a bit further, and it gets even weirder. In my tests, if I instantiate the <code>PHPMailer()</code> object with <code>false</code> then my test email sends, but if I set <code>true</code> it fails, with an actual SMTP server error. It seems like a combination of <code>$exceptions = true;</code> with <code>$SMTPDebug = 2;</code> causes mail sending to fail. Ok, after a bit more research, it looks like the <code>SMTPDebug</code> option has changed from a numerical value to a boolean. Changing it to <code>true</code> works for me. Now I can send test emails and get a debug log, with the <code>PHPMailer</code> object instantiated with <code>$exceptions = true;</code>. :-)

Jon at 2014-04-22 01:40:31

I installed your plugin and it works great. I am wanting to add the settings in the wp-config.php I copy pasted the code (filling in the correct info for my server of course) and it does not seem to be working. the email tab is still visible in wp and emails aren't going out. Is there another line i need to add or comment out to get your plugin to take the info from the config file as opposed to the gui? Any help would be great! Thanks for all your work, it is greatly appreciated.

Toby Griffiths at 2014-05-11 18:16:10

Hi there, Apologies for the contact email I just sent. Didn't see the link to this support page till afterwards. Love the plugin, but are there any plans to update to hide the password field, as I'm reluctant to use this on some sites as exposing this is a security risk? Thanks again for the plugin though :o)

Andrew at 2014-04-24 03:21:51

Callum, I'm using wordpress + woocommerce. I used to get new order confirmation emails but my customers did not. I switched to wp-smtp-mail and now neither myself or my customers are getting the confirmation emails. I have tried a yahoo account, a hotmail account, a gmail account, a live account and a company email account - I can't get any of these emails to work with the plug-in. I've run over blogs and forums and triple checked the SMTP settings a million times. I am now only able to get emails through my "contact us" page using "PHP mail() function" to send emails. When I delete the plug-in, I can't get emails at all from my wordpress site. It's been like this since the first time I installed the plug-in. There has to be a setting somewhere that wasn't erased when I first configured the plug-in. I either need to start receiving SMTP emails or I just want everything to go back to the way it was where only I was getting the confirmation emails and not my customers. Anything is better than nothing. I could really use your help and hope you can offer some helpful hints. If you need more information from me I would be more than happy to offer it. I hope to hear from you soon. Have a great day.

Jesse at 2014-06-04 00:37:06

Jill - How did you fix this? Thanks.

Luís at 2014-11-11 14:31:45

For some reason, all my websites using this plugin aren't sending emails anymore... the test emails reports an email sent correctly, but it doesn't arrive. Any help please?

Taner at 2014-11-30 22:16:33

Hi Callum, I love this plug-in , thanks ... How can i change "LABELS" of fields ? " Name" , " Subject" , " E-mail" " Message" I want to change these in our language . thanks for solutions :)

Rishikesh at 2014-12-20 15:13:22

Hi. Thanks for the great plugin The plugin was working fine with wordpress 4.0 (using phpMail() as mailer) I just updated it to 4.1 and now when i test mail. it says bool(true) but the mails are not being reached. please update the plugin check below for log bool(true) The full debugging output is shown below: object(PHPMailer)#990 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(22) "contact@thekarrier.com" ["FromName"]=&gt; string(10) "thekarrier" ["Sender"]=&gt; string(22) "contact@thekarrier.com" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to rishi@thekarrier.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(352) "Date: Sat, 20 Dec 2014 14:10:07 +0000 Return-Path: From: thekarrier Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=&gt; string(82) "To: rishi@thekarrier.com Subject: WP Mail SMTP: Test mail to rishi@thekarrier.com " ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "mail" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; int(25) ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; NULL ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "rishi@thekarrier.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["rishi@thekarrier.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["lastMessageID":protected]=&gt; string(49) "" ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_72ef849d7ca295183f9e5e4436390592" [2]=&gt; string(35) "b2_72ef849d7ca295183f9e5e4436390592" [3]=&gt; string(35) "b3_72ef849d7ca295183f9e5e4436390592" } ["language":protected]=&gt; array(0) { } ["error_count":protected]=&gt; int(0) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below:

Kylee at 2014-12-05 20:11:36

Ugh... I hate it when you find the answer immediately after requesting help. Well, maybe not hate but it's annoying... Turns out it was due to mismatched "From" lines (i.e. the emails have to be the same in both plugins or it will fail? or maybe an SMTP rejection because the CF7 didn't match its login?) In any case, here's what I found (for others who may have the issue): http://mariojvargas.com/2009/07/20/contact-form-7s-failed-to-send-your-message-error/

Kylee at 2014-12-05 19:58:46

Hi Callum, I've set up your plugin successfully to use SMTP on our self-hosted server. It sends test emails just fine. However, when I try to send via Contact Form 7, it fails. I disable yours, and I send fine. Re-enable, and it fails again... I tried adding "wp_" before "mail(" in the Contact Form 7 files, refreshing, and trying again but, unfortunately, that hasn't solved the issue... Given that CF7 has over 22million downloads, I'm hoping you have an idea to the issue (because it's been brought up before and I just haven't come across it yet) or that it would be worth your time. I love your app, so I just hope I can get it and CF7 to be friends. =) Thank you! Kylee

Ella at 2014-08-14 23:06:31

Update. It's working. I checked the "return email" box and I am using tls encryption. The email arrived in my inbox.

Callum at 2014-09-18 01:03:41

Haven't considered anything like this. The plugin is very simple, just enables SMTP, I leave the rest up to the user. :-)

Bob at 2014-09-18 02:30:21

yes, so I discovered. I realized ten minutes afterwards that I'd incorrectly assumed that yours was a form set up. Sorry.

Mike at 2014-09-19 00:41:41

I cannot get it to send unless I check use php vs SMTP, than I get a positive test result but no emails actually send out. Any thoughts? Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#490 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(21) "multipart/alternative" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(22) "SMTP connect() failed." ["From"]=&gt; string(20) "luvbyrdluv@gmail.com" ["FromName"]=&gt; string(7) "LuvByrd" ["Sender"]=&gt; string(20) "luvbyrdluv@gmail.com" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(45) "WP Mail SMTP: Test mail to mikereff@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(404) "--b1_b97cb2a437d6c6998a151e191540b0d3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a test email generated by the WP Mail SMTP WordPress plugin. --b1_b97cb2a437d6c6998a151e191540b0d3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a test email generated by the WP Mail SMTP WordPress plugin. --b1_b97cb2a437d6c6998a151e191540b0d3-- " ["MIMEHeader":protected]=&gt; string(470) "Date: Thu, 18 Sep 2014 22:37:20 +0000 Return-Path: To: mikereff@gmail.com From: LuvByrd Subject: WP Mail SMTP: Test mail to mikereff@gmail.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_b97cb2a437d6c6998a151e191540b0d3" Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(20) "luvbyrdluv@gmail.com" ["Password"]=&gt; string(13) "Vivelibre2337" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#571 (12) { ["Version"]=&gt; string(5) "5.2.7" ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["smtp_conn":protected]=&gt; bool(false) ["error":protected]=&gt; NULL ["helo_rply":protected]=&gt; NULL ["last_reply":protected]=&gt; string(0) "" } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(18) "mikereff@gmail.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["mikereff@gmail.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["lastMessageID":protected]=&gt; string(50) "" ["message_type":protected]=&gt; string(3) "alt" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_b97cb2a437d6c6998a151e191540b0d3" [2]=&gt; string(35) "b2_b97cb2a437d6c6998a151e191540b0d3" [3]=&gt; string(35) "b3_b97cb2a437d6c6998a151e191540b0d3" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Ella at 2014-08-13 01:17:40

Hi Callum, The WP Mail SMTP isn't working for me. I have a self-hosting WP 3.9.2 blog and used smtp setting for webhost mail server. Can you help me fix this problem? I want to use the Roundcube server settings and I have OpenSSL on the server. FYI: I even changed smtp setting to gmail smpt as listed on http://www.callum-macdonald.com/code/wp-mail-smtp/ but the test email still isn't working. Test Message Sent The result was: bool(false) MYSITE.com" ["FromName"]=&gt; string(18) "MYSITE.com" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(52) "WP Mail SMTP: Test mail to especial@yahoo.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(473) "Date: Tue, 12 Aug 2014 23:02:16 +0000 Return-Path: To: especial@yahoo.com From: "MYSITE.com" Subject: WP Mail SMTP: Test mail to especial@yahoo.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(29) "hello@MYSITE.com" ["Password"]=&gt; string(15) "zuy)hipa342@19jyr" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#708 (12) { ["Version"]=&gt; string(5) "5.2.7" ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["smtp_conn":protected]=&gt; bool(false) ["error":protected]=&gt; NULL ["helo_rply":protected]=&gt; NULL ["last_reply":protected]=&gt; string(0) "" } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(25) "especial@yahoo.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["especial@yahoo.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["lastMessageID":protected]=&gt; string(53) "" ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_64f253481a333bb8baa67c2b14c12afd" [2]=&gt; string(35) "b2_64f253481a333bb8baa67c2b14c12afd" [3]=&gt; string(35) "b3_64f253481a333bb8baa67c2b14c12afd" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: (0) How do I check the server's smtp settings so I can connect to the server?

Massimiliano at 2014-07-30 00:34:17

Hi Callum, I made new translations for your plugin. Are you interested? If so, please contact me.

Bob at 2014-09-17 23:40:39

I've got several wp sites up with your plugin that works. However, a new site isn't showing up the shortcode to insert into the Contact Page. There's no navigation to get the form INTO the page. Seems like there used to be an icon at the top of the edit page. I don't see anything now. I can't make the form if I can't get the settings to appear. Even my older pages which used to work, are now dead, with shortcode where the form used to be. WP Version 4 apparently screwed it up royally.

Mj at 2014-03-08 04:20:56

I tested the contact form but it gives me this message: An error occured - your message has not been sent. Please try again. I checked with the web server and they said the SMTP details are all working properly and that the contact form settings is the one that needs fixing. Help!

Adam Conway at 2013-11-13 15:42:11

Replying to my own comment after further investigation. It appears that the Test Email function continues to try and send the email even if authentication fails. The mail server seems to allow me to relay even without authenticating so the Test Email gets through. Actual calls to wp_mail from my plugin fail if the authentication fails. If I turn of SMTP authentication then my mails work as well. I count this as a bug in the Test Email functionality - if the Test Email says OK then I should be able to rely on that that other wp_mail calls will work too. however, in this case I cannot. At the very least there should be a clear warning at the top of the test Email output ("Succeeded but with errors" or similar).

Vlado at 2013-09-19 17:16:11

Hi, Dude, can you make this password field not showing my password? Show dots or asterisk instead, and encrypt password please. BR V

Callum at 2013-12-10 13:31:43

Are you using your own email address as the "From" address on these notifications? Are you sending them via SMTP? Are you using your hosting provider's SMTP server?

Doug Lerner at 2013-12-10 14:13:04

Yes to all three questions. Thanks, Doug

Jill Hoben at 2013-12-10 16:20:44

Thanks vey much. Everything seems to be working. Thanks for the help.

Callum at 2014-04-29 10:17:15

Gmail always overrides the from address.

Jason W at 2014-02-11 19:56:43

I am using version 0.9.4 of WP-Mail- SMPT. I am using Gmail to send the email, however when I change the settings at the top of the Advanced Email Options it still defaults to the gmail email address instead of the one I have set the options too. What am I doing wrong?

Jim at 2014-09-22 19:24:29

Hello, I am using your plugin in hopes that it will fix my email situation that I am having from the plugin Booking System (Booking Calendar) - Version 1.3.1 - Plugin site(http://dopdemo.net/wp/booking-system/). This plugin sends emails from the form half the time. I installed your plugin to see if it would help but I know that it is not reaching the plugin because I still have the issue and the wp-mail-smtp setup has a subject line that is different from the one I get when testing the booking calendar. I looked at your support and it mentions that the plugin must use wp_mail() in the plugin’s source. I checked this and it looks like the plugin uses that but I may be looking in the wrong place because it is still not working for me. I really need a solution for my email issue. I am really hoping I can get this to work with your plugin. Will you please help me? Thank you.

Callum at 2013-10-23 10:05:09

You'd need to ask the developers of the plugin you want to modify.

Brian Popoleo at 2013-10-09 01:57:23

Hello, I was not receiving email with contact form 7 only so I downloaded and installed your plugin. I would say it works great! The only issue I have is that when I receive email to my google account it shows my email as the sender. It does have their email correct in the body but I cannot just reply to answer their question. Is there a setting I can change to correct this? Thanks, Brian

Callum at 2013-10-09 10:49:25

Your issue has nothing to do with this plugin. However your contact form plugin sends the email is how this plugin will forward it. As far as I'm aware, gmail does not allow the type of sending you're talking about. You need an alternate SMTP server for it to work as you would like. I have a free account with sendgrid that works fine.

Julie at 2013-10-09 22:12:23

How can I verify that I have your plugin correctly configured so that all emails sent via my form plugin are secure? I have an application and contact us form. The form plugin uses wp_mail.

Paulo A. Silva at 2013-11-01 18:03:48

The best choice ;) Thanks,

Paulo A. Silva at 2013-11-01 17:34:35

Callum, I'm really sorry about my mistake: I forgot to escape some slashes... Below you will find the right diff diff -r 18d67b4f4f9e wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php --- a/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php Fri Nov 01 15:42:05 2013 +0000 +++ b/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php Fri Nov 01 16:32:56 2013 +0000 @@ -348,9 +348,9 @@ */ if (!function_exists('validate_email')) : function validate_email( $email, $check_domain = true) { - if (ereg('^[-!#$%&amp;\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'. + if (preg_match('/^[-!#$%&amp;\'*+\\.\/0-9=?A-Z^_`a-z{|}~]+'.'@'. '[-!#$%&amp;\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'. - '[-!#$%&amp;\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) + '[-!#$%&amp;\'*+\\.\/0-9=?A-Z^_`a-z{|}~]+$/', $email)) { if ($check_domain &amp;&amp; function_exists('checkdnsrr')) { list (, $domain) = explode('@', $email);

Callum at 2013-11-01 17:50:34

I switched to <code>is_email()</code> instead of <code>validate_email()</code>, simple fix. :-)

Callum at 2013-11-01 17:09:45

Thanks, this is long overdue for a fix, I'll do it right now.

Paulo A. Silva at 2013-11-01 17:04:50

Hi Callum, Because PHP ereg function has been DEPRECATED as of PHP 5.3.0, your plugin needs a patch on email validation, replacing ereg with preg_match. Below I leave you the fix but if you want, write me an email and I will send you the diff file. diff -r 18d67b4f4f9e wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php --- a/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php Fri Nov 01 15:42:05 2013 +0000 +++ b/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php Fri Nov 01 16:00:20 2013 +0000 @@ -348,7 +348,7 @@ */ if (!function_exists('validate_email')) : function validate_email( $email, $check_domain = true) { - if (ereg('^[-!#$%&amp;\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'. + if (preg_match('^[-!#$%&amp;\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'. '[-!#$%&amp;\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'. '[-!#$%&amp;\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {

zeeshan at 2013-09-09 17:10:27

Is there form shortcode for wordpress page?

Zvi Eshel at 2013-11-20 18:45:04

Hi Need to set smtp plugin to send emails from original sender, not smtp authenticated user. Any idea how to go aobut it? wp 3.7.1 - SMTP 0.9.3 tnx, Zvi

Hasan at 2013-12-05 22:08:41

hi Callum, im getting mails from "unknown sender" could you help me about this?

Callum at 2014-04-29 10:16:49

Nothing to do with this plugin. This plugin only overrides the From address if it is wordpress@sitename, nothing else.

Callum at 2014-05-01 00:18:56

Either the hostname is wrong, PHP is not allowed to make outgoing connections, there's a DNS issue, or the outgoing port may be blocked by your hosting provider.

Jospin de Witte at 2014-01-07 17:07:59

wp_mail interception not working; but test mail is using WP Mail SMTP settings. Dear callum, it seems that even though the test mail feature uses the settings from the plugin, a wp_mail call is not altered; it still sends mail directly to PHP mail() function ... Any ideas?

Callum at 2013-09-10 10:50:50

A shortcode for what exactly? This plugin works entirely behind the scenes, enabling features normally disabled in WordPress.

Callum at 2014-04-04 18:44:13

Don't think your issue is caused by this plugin.

Callum at 2014-04-04 18:44:58

Not sure what the issue is, doesn't sound like this plugin. Maybe find more information about what the error message means on the contact form plugin.

Marisa at 2014-03-11 02:50:47

Hello. I'm hoping someone can shed some insight into an issue I've been encountering. When new members register, they don't receive their password. The only way around this is using the "Forgot Password" function (after which the new password link is successfully sent to users). Could this be a plugin issue on WP Mail SMTP's end? I tried sending myself a test email and it went through immediately with no errors, but I wanted to throw this out there in case others have experienced this issue. Thanks in advance!

Callum at 2014-09-18 01:04:13

Check your logs. Try the wp-mail-log plugin to see what's going on under the hood.

Mark Mannix at 2014-08-06 14:18:03

We have had instances where the email address that we use to send through for clients has been deleted or has had the password changed. Have you thought about any error handling notifications to alert someone to this? I guess it couldnt be emailed if they have whacked the email functionality.

Sitou at 2014-09-08 19:10:21

Hi Callum, I need help please. I set up the plugin, the test email work great but when I actually use it in a form on a website, the message fails to send. I'm totally confused. I use smtp.gmail.com, at first google was preventing the authentication but, I granted access to less secure apps. What could be wrong please?

Patrick at 2014-07-03 12:57:23

Can this method be used to add a bcc: address? if so, how, and what file to I have to modify? Thanks.

Patrick at 2014-07-03 13:21:01

Ahh - Figured it out! I added this --- $phpmailer-&gt;addBCC("address@domain.tld", "WebsiteBCC"); --- after line 149 on wp_mail_smtp.php

Evren at 2014-07-04 19:37:12

Hi Callum, Thank you for your great plugin. when sending mails it throws error The SMTP debugging output is shown below: Warning: stream_set_timeout() has been disabled for security reasons in /home/... .com/httpdocs/wp-includes/class-smtp.php on line 197 Warning: stream_set_timeout() has been disabled for security reasons in /home/... .com/httpdocs/wp-includes/class-smtp.php on line 965 how can we configure this error.

Callum at 2014-09-18 00:59:32

This plugin does not have a shortcode nor does it create any kind of contact forms.

mic at 2014-08-06 10:56:41

Hi Callum i'm using WP 3.9.1, Login with ajax 3.1.2 and WP Mail Smtp hosted by Godaddy all my test's mail come in on my admin's box, smtp settings are ok my contact form 7 is ok i received mail on my admin's box but when i fill for test registration's box on ajax modal window i'm warned on admin's box that a new user has subscribed however i didn't get mail with pw and id on user 's box (my private for instance) i have spend days to find a clue but i didn't succeed can you help ? thanks Mic

Pete Mugleston at 2014-01-26 01:01:01

Hi Callum, I really need your help (happy to pay). I installed http://wordpress.org/plugins/wp-mail-smtp/ onto my 3.7.1 version of WP because I use gravity forms and it recommended I get SMTP for WP in order to send notifications. It installed fine, and I configured the settings but on sending the test email it crashed the site into a 500 error. My site came back online by itself 2 minutes later, but now runs REALLY slow, almost backwards. I'm now panicking because my business relies on the site and if its not working properly we're in trouble!!!! Stupidly i hadn't done a backup before installing and cant afford to go back a month to the last backup. Can you please help me work out what has happened?!! Happy to pay for a fix as need this doing ASAP Many thanks Pete

Tim at 2014-04-29 23:15:58

SMTP Error: Could not connect to SMTP host

Joey at 2014-04-14 19:45:12

Hello Callum, I hope your week is off to a good start. I am using the WP SMTP plug-in and it works well with gmail hosting. Thanks for the plug-in. I am running into an issue though. I am using Gravity Forms which sends an email from the From email specified. However, when I receive the email, it is from the default email address, not the one I specified in Gravity Forms. I contacted Gravity Forms and they said the setting is probably being over-written by the WP Mail SMTP plug-in. My issue seems to be similar to http://wordpress.org/support/topic/plugin-contact-form-7-sender-from-email-is-not-appearing-in-mail-when-using-smtp-plugin. Was there ever a resolution? Thank you, Joey

eduardo fernandes at 2014-03-14 19:48:17

okay. i think i got it

eduardo fernandes at 2014-03-14 19:42:56

hello how do I setup the reply to correctly? it's sending my message back to me when i reply the contact form.

Dan at 2014-03-27 16:32:13

Hi there! Same here, couldn't find the settings for wp-config.php anywhere, then started browsing the source for the plugin and found them there. Might be helpful to include those on the plugin install or FAQ page. :-) Great plugin! Using it with Mandrill with no problems.

Callum at 2014-04-29 10:06:56

Did you remove the <code>/*</code> and the <code>*/</code> from around the code? These two marks stop everything in between them from being processed by PHP (anything between them is ignored). Did you put it into the wp-config.php file above the line that says "stop editing here"?

Callum at 2014-04-29 10:10:08

If you disable the plugin there is no code left behind. There are a few values written to the <code>wp_options</code> table, but these are not used by anything else. It is not possible for the plugin to modify WordPress in any way that would continue after it was uninstalled or deleted. Maybe another plugin or theme is using the same option names in <code>wp_options</code>, you could remove those values if you want. Then the plugin will be 100% uninstalled. Otherwise, if you have the plugin installed, you can try the test email functionality and see what it reports. I'd also suggest contacting your hosting provider to ask them if PHP is allowed to make outgoing connections, if any ports are blocked, and if PHP is compiled with SSL support (necessary for most email providers).

Callum at 2014-04-04 18:43:21

You can't connect to Gmail on port 25. I guess your host blocks outgoing connections on port 25.

Callum at 2014-04-05 14:03:37

You posted your email address and your password above by the way. I'd suggest changing your password immediately. Your web server probably isn't set up to make outgoing connections, or the specific host you're trying to access is blocked. Try contacting your server administrator.

Urvisha at 2014-02-05 08:54:07

Hello, i used Easy WP SMTP v1.0.7 plugin but i get this error:- SMTP -&gt; ERROR: Failed to connect to server: The requested address is not valid in its context. (10049)

Roberto at 2013-11-18 15:27:48

Hi, I'am using Contact Form 7. My settings: 1) To send I installed the plugin WP-Mail-SMTP and configured: - From Email: email@nomesito.it - From Name: nomesito.it - Mailer: Send all WordPress emails via SMTP . - SMTP Host: [my internal SMTP service] - SMTP Port: 25 - Encryption: No encryption . - Authentication: No: Do not use SMTP authentication . I made ​​a test using the form for this test and mail arrives correctly . 2) I have configured my FORM of Contact Form 7 and everything is working correctly, because, as I have entered is specified in the “To:” and in the “From:” the same email as above, ie email@nomesito.it Performed a test, sending succeeds. I tried, however, to allow multiple selection of the recipient: [select * recipient "Technical Support | assistenzatecnica@nomesito.it" "Commercial | sales@nomesito.it" "General | rsalemi@nomesito.it" "Administrative support | amministrazione@nomesito.it" ] and set the two fields fields: - “TO:” -&gt; [your recipient] - “FROM”: – &gt; [your-name] Sending does not work anymore: this is because the field “To:” FORM is different from the “From Email:” in the configuration. I would like to avoid creating 4 contact blocks, you have any suggestions? The site will be published through my local server made ​​with Wampserver. Maybe instead of sending STMP should I use the PHPMailer class? Thanks in advance for your help.

Jill Hoben at 2013-12-04 00:16:01

Hi Callum, I am using Gravity Forms ver 3.2 on a website which uses notifications to send out PDF files of the application sent to the Admin and the User. We installed your plugin and it still does not work. See below: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0) Where would I make that correction

o6asan at 2013-08-14 16:37:35

Thank you for your great plugin. I use WP Mail SMTP 0.9.1 on WP3.6, and I updated Japanese language file for it. You can download it from the link below. http://o6asan.com/wp-content/uploads/wp_mail_smtp-ja.zip I think the pot file on the page "WP Mail SMTP" is old. Am I right? By the way, I found the two lines missing the domain in the wp_mail_smtp.php. L.255 'Return Path', 'wp_mail_smtp' L.306 'Save Changes', 'wp_mail_smtp'

Zack at 2014-04-04 21:20:55

Hello, I'm getting the same failure to connect messages with both of my SMTP servers (1 with google, 1 with fastmail). I have verified that I have the SMTP info correct and they are otherwise working. I've also made sure the From name matches the email, etc. Still no luck. I'd appreciate any help you can offer. I've pasted below the Test message results. Thanks ========== Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#835 (65) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(16) "zt@twistmail.net" ["FromName"]=&gt; string(13) "Zachary Twist" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(45) "WP Mail SMTP: Test mail to list@mailworks.org" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["MIMEBody:protected"]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader:protected"]=&gt; string(440) "Date: Fri, 4 Apr 2014 19:15:15 +0000 Return-Path: zt@twistmail.net To: list@mailworks.org From: Zachary Twist Subject: WP Mail SMTP: Test mail to list@mailworks.org Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 " ["mailHeader:protected"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(24) "mail.messagingengine.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(16) "zt@twistmail.net" ["Password"]=&gt; string(13) "*******" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(5) "5.2.4" ["XMailer"]=&gt; string(0) "" ["smtp:protected"]=&gt; object(SMTP)#821 (11) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["Version"]=&gt; string(5) "5.2.4" ["smtp_conn:private"]=&gt; bool(false) ["error:private"]=&gt; array(1) { ["error"]=&gt; string(38) "Called Reset() without being connected" } ["helo_rply:private"]=&gt; NULL } ["to:protected"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(18) "list@mailworks.org" [1]=&gt; string(0) "" } } ["cc:protected"]=&gt; array(0) { } ["bcc:protected"]=&gt; array(0) { } ["ReplyTo:protected"]=&gt; array(0) { } ["all_recipients:protected"]=&gt; array(1) { ["list@mailworks.org"]=&gt; bool(true) } ["attachment:protected"]=&gt; array(0) { } ["CustomHeader:protected"]=&gt; array(0) { } ["message_type:protected"]=&gt; string(5) "plain" ["boundary:protected"]=&gt; array(3) { [1]=&gt; string(35) "b1_78212b24715d38a90793ffe9af897f49" [2]=&gt; string(35) "b2_78212b24715d38a90793ffe9af897f49" [3]=&gt; string(35) "b3_78212b24715d38a90793ffe9af897f49" } ["language:protected"]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP Connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count:protected"]=&gt; int(2) ["sign_cert_file:protected"]=&gt; string(0) "" ["sign_key_file:protected"]=&gt; string(0) "" ["sign_key_pass:protected"]=&gt; string(0) "" ["exceptions:protected"]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Adam Conway at 2013-11-12 17:42:47

Hi, I'm using your plugin in order to send emails via authenticated SMTP. I have now got it opened at the SMTP server so that we can relay there and the Test mail works - reports true and the mail arrives. However, if I try sending using wp_mail from my plugin it doesn't work - wp_mail returns true and the email does not arrive. I put some debugging code in the wp_mail function, ihncluding that I debug out the $e-&gt;getMessage() from the catch block in the try/catch at the very end of wp_mail (when it tries to send the actual mail). This says "SMTP Error: Could not authenticate." However, as said, the test mails work! I then started debuggin out the phpmailer object and comparing between my wp_mail call and yours. i noticed that the exceptions protected member was true for mine and not for the test mail. It appears that the global phpmailer does not exist when coming in to wp_mail in my call, so it is created in wp_mail using $phpmailer = new PHPMailer( true ) If I change that true to a false (i.e. set exceptions to false in the phpmailer object) then not only does wp_mail return true but the mail arrives! How can I be getting authentication errors but the mail still be arriving if I check for errors? Any ideas?

Lisa at 2014-05-06 22:37:51

I'm trying to set up a contact form to send emails to a godaddy email account, it will send emails to every other email address I try other than the godaddy email address! I have followed your instructions and yet I'm getting this error message when I test the email and havent received any of the emails - can you please help me? Thanks Advanced Email Options Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#501 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(22) "SMTP connect() failed." ["From"]=&gt;

AliHM at 2014-05-07 05:57:41

Hi i recive this message : Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#7897 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(22) "SMTP connect() failed." ["From"]=&gt; string(12) "iam@alihm.ir" ["FromName"]=&gt; string(21) "قالب وردپرس" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(39) "WP Mail SMTP: Test mail to iam@alihm.ir" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody:protected"]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader:protected"]=&gt; string(433) "Date: Wed, 7 May 2014 03:49:43 +0000 Return-Path: To: iam@alihm.ir From: =?UTF-8?B?2YLYp9mE2Kgg2YjYsdiv2b7Ysdiz?= Subject: WP Mail SMTP: Test mail to iam@alihm.ir Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader:protected"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(20) "smtp.mandrillapp.com" ["Port"]=&gt; string(3) "587" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(18) "hamyarwp@gmail.com" ["Password"]=&gt; string(22) "QOC-dKdiFNkqegGU1Z_ueQ" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp:protected"]=&gt; object(SMTP)#7898 (12) { ["Version"]=&gt; string(5) "5.2.7" ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["smtp_conn:protected"]=&gt; bool(false) ["error:protected"]=&gt; NULL ["helo_rply:protected"]=&gt; NULL ["last_reply:protected"]=&gt; string(0) "" } ["to:protected"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(12) "iam@alihm.ir" [1]=&gt; string(0) "" } } ["cc:protected"]=&gt; array(0) { } ["bcc:protected"]=&gt; array(0) { } ["ReplyTo:protected"]=&gt; array(0) { } ["all_recipients:protected"]=&gt; array(1) { ["iam@alihm.ir"]=&gt; bool(true) } ["attachment:protected"]=&gt; array(0) { } ["CustomHeader:protected"]=&gt; array(0) { } ["lastMessageID:protected"]=&gt; string(54) "" ["message_type:protected"]=&gt; string(5) "plain" ["boundary:protected"]=&gt; array(3) { [1]=&gt; string(35) "b1_c5e721cbdd21e3d80bbb9811d5757e0b" [2]=&gt; string(35) "b2_c5e721cbdd21e3d80bbb9811d5757e0b" [3]=&gt; string(35) "b3_c5e721cbdd21e3d80bbb9811d5757e0b" } ["language:protected"]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count:protected"]=&gt; int(2) ["sign_cert_file:protected"]=&gt; string(0) "" ["sign_key_file:protected"]=&gt; string(0) "" ["sign_key_pass:protected"]=&gt; string(0) "" ["exceptions:protected"]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: (0) can you help me ?

Adam Conway at 2013-11-28 13:08:06

The email I sent using the Test Email functionality in the plugin (which arrived) and the email I tried but failed to send using the wp_mail call in my plugin were both to the same address. The question is not whether the authentication worked or not, the point is that the Test Email functionality has a bug in that it reports that emails can be sent when wp_mail fails to be able to send the same mail. The whole point of the Test Email function is to test whether sending emails will work - if the result cannot be trusted then the function has a bug (in my opinion). As I said, at the very least there should be a clear warning that success from the Test Email function does not indicate that wp_mail will necessarily work.

Callum at 2014-04-29 10:17:55

Maybe your hosting provider doesn't allow PHP to make outgoing connections?

Callum at 2014-04-29 10:20:18

Selecting SSL will not change the port number, you must also change the port number. You can test using a tool like wireshark to inspect network traffic. How to do that is well beyond the scope of plugin support.

Callum at 2014-04-29 10:21:03

Gmail always sets the from address to be your gmail address. It's a security / spam feature.

Sara A at 2014-02-06 22:42:06

Hi Callum, I'm new to both Wordpress, Woocommerce and coding in general. I'm using Wordpress with Woocommerce and the Mystile theme and am having an issue with the contact form. When an email is sent to us (info@muggles.co.za) we don't get it. The one sent to the person sending the mail comes through when I test it but I am not receiving the actual email sent to us. I was advised by the support desk at WooThemes to do the following: "It could be that it is blocked by other server's SPAM filters even before it hits your mail server. What you can try and do is use a dedicated SMTP provider to send your emails instead of relying on the WordPress default server email functionality. I suggest you install a plugin like WP-Mail-SMTP and then configure it to use something like a GMail account or another SMTP mail account." So I installed your plugin and setup a Gmail account (mugglesandmore@gmail.com) as instructed but am still having problems. I set everything up as per your suggested settings found on this site but I am getting the following error when trying to send the test email: "Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#261 (65) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(23) "wordpress@muggles.co.za" ["FromName"]=&gt; string(7) "Muggles" ["Sender"]=&gt; string(23) "wordpress@muggles.co.za" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(51) "WP Mail SMTP: Test mail to sara_ainscow@hotmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(458) "Date: Thu, 6 Feb 2014 20:27:30 +0000 Return-Path: wordpress@muggles.co.za To: sara_ainscow@hotmail.com From: Muggles Subject: WP Mail SMTP: Test mail to sara_ainscow@hotmail.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(24) "mugglesandmore@gmail.com" ["Password"]=&gt; string(10) "mugsgalore" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(5) "5.2.4" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#262 (11) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["Version"]=&gt; string(5) "5.2.4" ["smtp_conn":"SMTP":private]=&gt; bool(false) ["error":"SMTP":private]=&gt; array(1) { ["error"]=&gt; string(38) "Called Reset() without being connected" } ["helo_rply":"SMTP":private]=&gt; NULL } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(24) "sara_ainscow@hotmail.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["sara_ainscow@hotmail.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_9c09a455c02f4b6ffdc244255560ebd2" [2]=&gt; string(35) "b2_9c09a455c02f4b6ffdc244255560ebd2" [3]=&gt; string(35) "b3_9c09a455c02f4b6ffdc244255560ebd2" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP Connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)" Sorry for the long explanation but I wanted to give you all the details. As I said I'm new to all of this and don't have a clue how coding works although I did try to find the mail() story to change it to the wp_mail() as suggested elsewhere but I couldn't find it. Please can you tell me what I'm doing wrong? It is probably some simple little setting but I don't have a clue why it won't work. If you need any further information please let me know and I will send what I can through asap. Thanks so much for your help, it is really appreciated. Regards Sara

Matthew at 2014-01-23 17:55:00

When I try to activate the plug-in after installing it I get sent to a 404 page. Help! :)

Jeremy at 2014-06-25 14:23:19

Hi Callum, as mentioned by others here, I would also like to ask you to kindly hide the SMTP authentication password field (ie. use dots to hide it), as it is a security risk for me to have that password visible. Thanks!

Jonathan Aquilina at 2014-11-14 15:45:25

I am wondering is this plugin supported and designed to work with wordpress 4.x? Are there plans to keep the plugin updated with latest versions?

Rogier van der Heide at 2014-02-24 19:13:11

Hi Callum, Your plugin does not authenticate with my smtp server and instead produces the error "fputs() expects parameter 1 to be resource, integer given in class-smtp.php in line 308" I use have installed version 0.9.4 of your wp-mail-smpt plugin and I run PHP Version 5.3.27. Could you please help me? I use your plugin to enable registration for a design competition and we have over 700 designers registered who try to send emails using our WP form. Many thanks in advance! Rogier

Callum at 2014-04-04 18:46:20

Sounds like your server doesn't have the correct PHP options enabled. I guess that the error means your server can't connect.

Bob at 2014-05-02 19:06:33

Please explain WHY the plugin is useful. Why would someone choose WP Mail SMTP over the PHP Mail function.

Callum at 2014-05-07 09:33:12

Does your server allow outgoing connections? I'd guess that PHP is not allowed to make outgoing connections, or that the port or host is blocked by your hosting company. Check with the server admin if PHP can make outgoing connections.

Callum at 2014-05-07 09:35:57

You can send to all addresses except one? That's almost certainly caused by the configuration of your mail server. Are you sending the messages from GoDaddy's server via GoDaddy's mail server? Maybe there's an issue there somehow, could be worth asking them.

Alex at 2014-10-19 13:01:31

Hello! I use wp-mail smtp plugin, please, help me to understand, how it works. is there a domain validation for e-mails?

Callum at 2014-07-04 19:52:54

Contact your server admin, this sounds like an issue with your PHP configuration.

David Tierney at 2014-05-30 02:36:40

Hi Callum, I have used your plugin for 2 websites and thank you for creating it. I wonder if you would be willing to make the contents of the authentication password field hidden, ie. a series of dots. Reason is, leaving the password visible leaves the email account vulnerable if the website is hacked. Having ones website hacked would be enough of a problem, and it happens enough these days, but having one's email address so easily accessed by such a hacker would compound the problem. Since one of the core benefits of the plugin is to allow one to send secure emails using SSL, anyone using that feature would be already concerned about security, which is the case with both times I have needed to it. As a temporary work around for both of my cases I have created new email addresses specifically for use of the website, but this is not idea. Either way, thanks again. David

David at 2014-05-29 12:31:44

I solved my question: add_filter('wp_mail_smtp_custom_options', 'smtp_replyto',98,1); function smtp_replyto($phpmailer){ $phpmailer-&gt;AddReplyTo('mail@ext.it','Name'); $phpmailer-&gt;SetFrom('mail@ext.it','Name'); return $phpmailer; }

Callum at 2014-04-04 18:42:00

I guess your server doesn't support outgoing ssl connections. Maybe contact your hosting provider and ask them?

Atul Joshi at 2014-04-02 14:45:52

Test Message Sent I am using wordpress 3.8.1 The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#229 (65) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(18) "atul7173@gmail.com" ["FromName"]=&gt; string(4) "Atul" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(45) "WP Mail SMTP: Test mail to atul7173@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(425) "Date: Wed, 2 Apr 2014 12:00:47 +0000 Return-Path: atul7173@gmail.com To: atul7173@gmail.com From: Atul Subject: WP Mail SMTP: Test mail to atul7173@gmail.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(18) "atul7173@gmail.com" ["Password"]=&gt; string(3) "123" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(5) "5.2.4" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#294 (11) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["Version"]=&gt; string(5) "5.2.4" ["smtp_conn":"SMTP":private]=&gt; bool(false) ["error":"SMTP":private]=&gt; array(1) { ["error"]=&gt; string(38) "Called Reset() without being connected" } ["helo_rply":"SMTP":private]=&gt; NULL } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(18) "atul7173@gmail.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["atul7173@gmail.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_758f04117597ad9f60a7f344fba82a54" [2]=&gt; string(35) "b2_758f04117597ad9f60a7f344fba82a54" [3]=&gt; string(35) "b3_758f04117597ad9f60a7f344fba82a54" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP Connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (113983616)

Jeremy at 2014-03-19 15:18:06

Hi I am getting the following error when trying to sign up with gmail! The error result was: bool(false) The full debugging output is shown below: object(PHPMailer)#959 (65) { ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["From"]=&gt; string(23) "my gmail email address went here" ["FromName"]=&gt; string(24) "Hire My Wedding Supplier" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(52) "WP Mail SMTP: Test mail to my email address went here" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(483) "Date: Wed, 19 Mar 2014 14:10:53 +0000 Return-Path: my gmail email address went here To: my email address went here From: Hire My Wedding Supplier Subject: WP Mail SMTP: Test mail to my email address went here Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(22) "www.hiremysupplier.com" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(23) "my gmail address went here" ["Password"]=&gt; string(10) "my gmail password went here" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["Version"]=&gt; string(5) "5.2.4" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#961 (11) { ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["Version"]=&gt; string(5) "5.2.4" ["smtp_conn":"SMTP":private]=&gt; bool(false) ["error":"SMTP":private]=&gt; array(1) { ["error"]=&gt; string(38) "Called Reset() without being connected" } ["helo_rply":"SMTP":private]=&gt; NULL } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(25) "my email address went here" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["my email address went here"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_1c924626f1f5f671635ff7d1a9d9a4e4" [2]=&gt; string(35) "b2_1c924626f1f5f671635ff7d1a9d9a4e4" [3]=&gt; string(35) "b3_1c924626f1f5f671635ff7d1a9d9a4e4" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: Data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP Connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; ERROR: Failed to connect to server: Connection refused (111)

Callum at 2014-04-29 10:13:16

Are you using Gmail? They automatically change the from address to your Gmail address. Unless your email is sent from "wordpress@sitename" then WP Mail SMTP does not change the From address.

Callum at 2014-01-26 16:57:54

Uninstall the plugin. If your sites goes back to being "fast", then your problem is solved. If not, the problem lies somewhere else than in the plugin. It's virtually impossible that this plugin causes your site to load slowly, but that's the surest way to figure out if it is.

Callum at 2014-01-26 16:58:41

Can you post a screenshot? I'd need more information to be able to offer any kind of advice.

Callum at 2014-01-26 17:00:45

Are you sending the wp_mail() call before the plugins have loaded?

Callum at 2014-01-26 17:02:55

Asked and answered more times than I can remember.

Callum at 2014-01-26 17:03:34

I'm not sure what you're trying to do. This plugin does not change who messages are sent to, that's down to whatever form plugin you're using.

Nizam Jan at 2014-12-16 23:43:06

This is the error i am getting. Firstly all is good but suddenly this happened. Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#606 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(35) "SMTP Error: Could not authenticate." ["From"]=&gt; string(19) "contact@doncoqui.tv" ["FromName"]=&gt; string(8) "Doncoqui" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(47) "WP Mail SMTP: Test mail to nizamjan73@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(428) "Date: Tue, 16 Dec 2014 21:59:09 +0000 Return-Path: To: nizamjan73@gmail.com From: Doncoqui Subject: WP Mail SMTP: Test mail to nizamjan73@gmail.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(16) "smtp.doncoqui.tv" ["Port"]=&gt; string(2) "25" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(19) "test786@doncoqui.tv" ["Password"]=&gt; string(13) "Yaraheemu786!" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#607 (12) { ["Version"]=&gt; string(5) "5.2.7" ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["smtp_conn":protected]=&gt; int(0) ["error":protected]=&gt; NULL ["helo_rply":protected]=&gt; NULL ["last_reply":protected]=&gt; string(64) "221 p3plcpnl0802.prod.phx3.secureserver.net closing connection " } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(20) "nizamjan73@gmail.com" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["nizamjan73@gmail.com"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["lastMessageID":protected]=&gt; string(50) "" ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_515d2a6ca97a1b3b9f85ac0df9ef301b" [2]=&gt; string(35) "b2_515d2a6ca97a1b3b9f85ac0df9ef301b" [3]=&gt; string(35) "b3_515d2a6ca97a1b3b9f85ac0df9ef301b" } ["language":protected]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count":protected]=&gt; int(2) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 "SMTP -&gt; get_lines(): $data is "220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 "SMTP -&gt; get_lines(): $data was "220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 "SMTP -&gt; get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "SMTP -&gt; get_lines(): $data is "220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 220-We do not authorize the use of this system to transport unsolicited, "SMTP -&gt; get_lines(): $data was "220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 220-We do not authorize the use of this system to transport unsolicited, "SMTP -&gt; get_lines(): $str is "220 and/or bulk e-mail. "SMTP -&gt; get_lines(): $data is "220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. "SMTP -&gt; FROM SERVER:220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. CLIENT -&gt; SMTP: EHLO www.doncoqui.tv SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] "SMTP -&gt; get_lines(): $data was "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] "SMTP -&gt; get_lines(): $str is "250-SIZE 52428800 "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 "SMTP -&gt; get_lines(): $data was "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 "SMTP -&gt; get_lines(): $str is "250-8BITMIME "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME "SMTP -&gt; get_lines(): $data was "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME "SMTP -&gt; get_lines(): $str is "250-PIPELINING "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "SMTP -&gt; get_lines(): $data was "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "SMTP -&gt; get_lines(): $str is "250-AUTH PLAIN LOGIN "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "SMTP -&gt; get_lines(): $data was "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "SMTP -&gt; get_lines(): $str is "250-STARTTLS "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "SMTP -&gt; get_lines(): $data was "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "SMTP -&gt; get_lines(): $str is "250 HELP "SMTP -&gt; get_lines(): $data is "250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "SMTP -&gt; FROM SERVER:250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP CLIENT -&gt; SMTP: AUTH LOGIN SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "334 VXNlcm5hbWU6 "SMTP -&gt; get_lines(): $data is "334 VXNlcm5hbWU6 "SMTP -&gt; FROM SERVER:334 VXNlcm5hbWU6 CLIENT -&gt; SMTP: dGVzdDc4NkBkb25jb3F1aS50dg== SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "334 UGFzc3dvcmQ6 "SMTP -&gt; get_lines(): $data is "334 UGFzc3dvcmQ6 "SMTP -&gt; FROM SERVER:334 UGFzc3dvcmQ6 CLIENT -&gt; SMTP: WWFyYWhlZW11Nzg2IQ== SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "535 Incorrect authentication data "SMTP -&gt; get_lines(): $data is "535 Incorrect authentication data "SMTP -&gt; FROM SERVER:535 Incorrect authentication data SMTP -&gt; ERROR: Password command failed: 535 Incorrect authentication data CLIENT -&gt; SMTP: QUIT SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "221 p3plcpnl0802.prod.phx3.secureserver.net closing connection "SMTP -&gt; get_lines(): $data is "221 p3plcpnl0802.prod.phx3.secureserver.net closing connection "SMTP -&gt; FROM SERVER:221 p3plcpnl0802.prod.phx3.secureserver.net closing connection

Olu Akinfenwa at 2015-03-31 11:57:48

Greetings to you Callum Macdonald. I like to make a new feature request for WP Mail SMTP. The request: (1) "Create options to set multiple smtp connections in the plugin. This will enable multiple simultaneous sending from all the connections simultaneously." Some desktop mailers have this feature. If this plugin has it too, that would be very wonderful. (2) Create limit settings for the smtp connections in the plugin eg hourly sending number limit. Kindly respond about this request to my email above. Thank you.

Sven at 2015-01-08 12:36:13

Hi The password for the SMTP is written in clear text. That is a bit of a problem because I don't want the other admins to know my password. Thank you.

Kunle at 2015-01-23 00:57:48

Big thank you to Callum for making this plugin and William for reporting back what was his solution. Hate it when people don't come back to a thread where they asked a question to share how they did or did not solve their problem. William, your experience with Bluehost helped me to get the clueless tech support from Hostmonster to give me the alternative smtp host I needed: host196.hostmonster.com. Plugged that in and problem solved after 2 days of scratching my head. So I repeat, if you have Hostmonster as your host and want to use smtp for gmail, do not use smtp.gmail.com. It will not work. Contact hostmonster to ask them what the setting should be if the one above doesn't work for you.

Michel at 2015-02-05 14:50:45

Hi Callum, Great plugin, thanks. Today I noticed an e-mail that was supposed to be send, hadn't happened. Other mails are getting through fine. I'm using your plugin in combination with Gmail. My best guess is that the server just couldn't connect to Gmail for a short moment. Thus the mail disappeared into nothing. It would certainly be nice to receive a notification whenever this occurs! Is that possible, or would you consider adding such a feature? Thanks again!

Callum at 2015-03-31 18:46:10

I guess these features are not critical for the average user, but feel free to fork and implement these changes.

Javier at 2015-01-29 07:00:26

Hola Callum que tal buen dia, estoy probando el plug in pero tengo un error al hacer la prueba, fallo de envio, estoy utilizando wordpress y pretendo usar una cuenta gmail, gracias saludos Javier R/Mexico

Vitor at 2015-09-08 16:35:38

Hello, I uploaded and changed the settings of this SMTP plugin. I created an email just for that: wp@foment.com.br I put the settings of this email in the plugin. But now, when a user is going to fill out the form, it only sends if he puts and email of something@foment.com.br I they put @gmail.com or @yahoo.com the form says Error. Try: http://foment.com.br/index.php/interessado/ Best, Vitor

Glenn Evans at 2015-02-03 05:36:46

Hi Callum, the WP-Mail SMTP plugin has fixed my contact 7 forms issues (although not sure it wasn't a GoDaddy server config issue)... I am using version 0.9.5 of the plugin and noticed that in the setup page the password to the email address used for authentication is in clear text. Is this stored this way? Are there plans to protect the password in future versions?

Callum at 2016-08-18 12:11:20

Awesome, thanks for the feedback, will look into this as part of the next upgrade.

paul haynes at 2016-08-25 13:17:28

Dear Callum, Im having problems with sending email out on SMTP. I have tried three different settings with three different providers and the results are the same.Microsoft, Gmail and Yahoo. All three i can send from using SMTP direct in windows powershell , $EmailFrom = “CHANGE THIS TO YOUR EMAIL ADDRESS” $EmailTo = “CHANGE THIS TO YOUR DESTINATION ADDRESS” $Subject = “does this work” $Body = “What do you want your email to say” $SMTPServer = “smtp.office365.com” $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587) $SMTPClient.EnableSsl = $true $SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“CHANGE THIS TO YOUR LOGIN”, “CHANGE THIS TO YOUR PASSWORD”); $SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body) but in Wordpress 4.1 the bottom line of the error log is ERROR: Failed to connect to server: Connection timed out (110), yet i can connect and can send using the above bit of code. Its getting critical as my clients are not getting email when they shop on my site. can you help please?

Caroline Cohen at 2015-04-23 18:09:46

I have set up the plugin on my site, after email to the clients domain didn't come through using Gravity Form - although they did come when my email which is didn't than the domain. Good news is that with the plugin they are now coming through, but they are coming from the Authentication email address (allan@) from the one set up in the "From Email:" (jackie@) or the one designated in Gravity Forms. Thank you in advance for your help! Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#1428 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(22) "jackie(at)501partners.com" ["FromName"]=&gt; string(11) "501Partners" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(50) "WP Mail SMTP: Test mail to caroline(at)cpdesigns.info" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(443) "Date: Thu, 23 Apr 2015 15:52:55 +0000 Return-Path: To: caroline(at)cpdesigns.info From: 501Partners Subject: WP Mail SMTP: Test mail to caroline(at)cpdesigns.info Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(21) "allan(at)501partners.com" ["Password"]=&gt; string(10) "Jessica1!g" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; object(SMTP)#1430 (12) { ["Version"]=&gt; string(5) "5.2.7" ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["smtp_conn":protected]=&gt; int(0) ["error":protected]=&gt; NULL ["helo_rply":protected]=&gt; NULL ["last_reply":protected]=&gt; string(57) "221 2.0.0 closing connection t32sm3494483qgd.21 - gsmtp " } ["to":protected]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(23) "caroline(at)cpdesigns.info" [1]=&gt; string(0) "" } } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(1) { ["caroline(at)cpdesigns.info"]=&gt; bool(true) } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["lastMessageID":protected]=&gt; string(50) "" ["message_type":protected]=&gt; string(5) "plain" ["boundary":protected]=&gt; array(3) { [1]=&gt; string(35) "b1_57e8a37ebd8b59bfdba739c29fdaba97" [2]=&gt; string(35) "b2_57e8a37ebd8b59bfdba739c29fdaba97" [3]=&gt; string(35) "b3_57e8a37ebd8b59bfdba739c29fdaba97" } ["language":protected]=&gt; array(0) { } ["error_count":protected]=&gt; int(0) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "220 mx.google.com ESMTP t32sm3494483qgd.21 - gsmtp "SMTP -&gt; get_lines(): $data is "220 mx.google.com ESMTP t32sm3494483qgd.21 - gsmtp "SMTP -&gt; FROM SERVER:220 mx.google.com ESMTP t32sm3494483qgd.21 - gsmtp CLIENT -&gt; SMTP: EHLO 501partners.com SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "250-mx.google.com at your service, [2604:180::8281:5e47] "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] "SMTP -&gt; get_lines(): $str is "250-SIZE 35882577 "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 "SMTP -&gt; get_lines(): $str is "250-8BITMIME "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME "SMTP -&gt; get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH "SMTP -&gt; get_lines(): $str is "250-ENHANCEDSTATUSCODES "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES "SMTP -&gt; get_lines(): $str is "250-PIPELINING "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING "SMTP -&gt; get_lines(): $str is "250-CHUNKING "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING "SMTP -&gt; get_lines(): $str is "250 SMTPUTF8 "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 "SMTP -&gt; FROM SERVER:250-mx.google.com at your service, [2604:180::8281:5e47] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 CLIENT -&gt; SMTP: AUTH LOGIN SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "334 VXNlcm5hbWU6 "SMTP -&gt; get_lines(): $data is "334 VXNlcm5hbWU6 "SMTP -&gt; FROM SERVER:334 VXNlcm5hbWU6 CLIENT -&gt; SMTP: YWxsYW5ANTAxcGFydG5lcnMuY29t SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "334 UGFzc3dvcmQ6 "SMTP -&gt; get_lines(): $data is "334 UGFzc3dvcmQ6 "SMTP -&gt; FROM SERVER:334 UGFzc3dvcmQ6 CLIENT -&gt; SMTP: SmVzc2ljYTEhZw== SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "235 2.7.0 Accepted "SMTP -&gt; get_lines(): $data is "235 2.7.0 Accepted "SMTP -&gt; FROM SERVER:235 2.7.0 Accepted CLIENT -&gt; SMTP: MAIL FROM: SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "250 2.1.0 OK t32sm3494483qgd.21 - gsmtp "SMTP -&gt; get_lines(): $data is "250 2.1.0 OK t32sm3494483qgd.21 - gsmtp "SMTP -&gt; FROM SERVER:250 2.1.0 OK t32sm3494483qgd.21 - gsmtp CLIENT -&gt; SMTP: RCPT TO: SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "250 2.1.5 OK t32sm3494483qgd.21 - gsmtp "SMTP -&gt; get_lines(): $data is "250 2.1.5 OK t32sm3494483qgd.21 - gsmtp "SMTP -&gt; FROM SERVER:250 2.1.5 OK t32sm3494483qgd.21 - gsmtp CLIENT -&gt; SMTP: DATA SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "354 Go ahead t32sm3494483qgd.21 - gsmtp "SMTP -&gt; get_lines(): $data is "354 Go ahead t32sm3494483qgd.21 - gsmtp "SMTP -&gt; FROM SERVER:354 Go ahead t32sm3494483qgd.21 - gsmtp CLIENT -&gt; SMTP: Date: Thu, 23 Apr 2015 15:52:55 +0000 CLIENT -&gt; SMTP: Return-Path: CLIENT -&gt; SMTP: To: caroline(at)cpdesigns.info CLIENT -&gt; SMTP: From: 501Partners CLIENT -&gt; SMTP: Subject: WP Mail SMTP: Test mail to caroline(at)cpdesigns.info CLIENT -&gt; SMTP: Message-ID: CLIENT -&gt; SMTP: X-Priority: 3 CLIENT -&gt; SMTP: X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) CLIENT -&gt; SMTP: MIME-Version: 1.0 CLIENT -&gt; SMTP: Content-Type: text/plain; charset=UTF-8 CLIENT -&gt; SMTP: Content-Transfer-Encoding: 8bit CLIENT -&gt; SMTP: CLIENT -&gt; SMTP: This is a test email generated by the WP Mail SMTP WordPress plugin. CLIENT -&gt; SMTP: CLIENT -&gt; SMTP: . SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "250 2.0.0 OK 1429804376 t32sm3494483qgd.21 - gsmtp "SMTP -&gt; get_lines(): $data is "250 2.0.0 OK 1429804376 t32sm3494483qgd.21 - gsmtp "SMTP -&gt; FROM SERVER:250 2.0.0 OK 1429804376 t32sm3494483qgd.21 - gsmtp CLIENT -&gt; SMTP: QUIT SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "221 2.0.0 closing connection t32sm3494483qgd.21 - gsmtp "SMTP -&gt; get_lines(): $data is "221 2.0.0 closing connection t32sm3494483qgd.21 - gsmtp "SMTP -&gt; FROM SERVER:221 2.0.0 closing connection t32sm3494483qgd.21 - gsmtp

Jun at 2015-04-24 01:23:02

Hi, Great plug in. I use you plug in in 3 wordpress sites. I want to use 3 gmail address(each site) But only one gmail works Other gmails could not send email just fail. So all setting is perfect. Because 1 gmail works. I changed 3emails password in same letters. But only 1 gmail work. Please help. Thanks,

Callum at 2015-04-24 22:28:33

That's a gmail thing. Gmail always changes the from address to be whatever address you use. You could try a free account with mandrill or sendgrid, but with gmail, there's no way round it.

JJ at 2015-05-24 20:04:57

Hi Im having trouble with your plugin, here is the log. As you can see its true but no SMTP debugging Test Message Sent The result was: bool(true) The full debugging output is shown below: object(PHPMailer)#443 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(10) "iso-8859-1" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(0) "" ["From"]=&gt; string(14) "root@localhost" ["FromName"]=&gt; string(9) "Root User" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(0) "" ["Body"]=&gt; string(0) "" ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(0) "" ["MIMEHeader":protected]=&gt; string(0) "" ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "mail" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(9) "localhost" ["Port"]=&gt; int(25) ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(0) "" ["SMTPAuth"]=&gt; bool(false) ["Username"]=&gt; string(0) "" ["Password"]=&gt; string(0) "" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp":protected]=&gt; NULL ["to":protected]=&gt; array(0) { } ["cc":protected]=&gt; array(0) { } ["bcc":protected]=&gt; array(0) { } ["ReplyTo":protected]=&gt; array(0) { } ["all_recipients":protected]=&gt; array(0) { } ["attachment":protected]=&gt; array(0) { } ["CustomHeader":protected]=&gt; array(0) { } ["lastMessageID":protected]=&gt; string(0) "" ["message_type":protected]=&gt; string(0) "" ["boundary":protected]=&gt; array(0) { } ["language":protected]=&gt; array(0) { } ["error_count":protected]=&gt; int(0) ["sign_cert_file":protected]=&gt; string(0) "" ["sign_key_file":protected]=&gt; string(0) "" ["sign_key_pass":protected]=&gt; string(0) "" ["exceptions":protected]=&gt; bool(true) } The SMTP debugging output is shown below:

Prafulla Kumar Sahu at 2015-06-01 07:23:37

Hello Sir, I am using your plugin but could not send any email showing me error SMTP -&gt; ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060), would you please like to help me to solve it.

Chris Eveleigh at 2015-05-19 01:49:02

i realise this is a few years old but i just had to solve this problem too and the actual details don't appear to be here. to connect to SES i had to set host - email-smtp.us-east-1.amazonaws.com port - 587 encryption - TLS (SSL doesn't work) username and password from AWS. when i used SSL instead of TLS it said 'cannot connect to server' or something like that - but a network dump showed that we had connected and sent a few bytes of data and then the connection had been dropped. with TLS all worked.

Callum at 2015-05-19 10:30:57

Great, thanks for sharing.

Callum at 2015-06-01 09:28:12

The test says that the message was sent successfully. You could try a different SMTP server and see if that works. Otherwise you may need to ask your server admin about PHP's ability to make outgoing connections.

Callum at 2015-06-01 09:28:56

Maybe you have the wrong server hostname, or maybe it's blocked by a firewall, or maybe your server doesn't allow PHP to make outgoing connections (although I don't think that's very likely given the error).

Prafulla Kumar Sahu at 2015-06-01 09:38:15

sir, I am using windows 8 pro, server apache in localhost , smtp host smtp.gmail.com , is it because of windows 8 pro or apache is not allowing PHP to make a connection ?

Callum at 2015-06-01 10:10:54

I don't know. I'd guess it's a firewall / routing issue, but I'm not sure. I recommend contacting your system administrator.

Prafulla Kumar Sahu at 2015-06-01 10:16:07

thank you for your reply and guidance sir :)

Tim Houghton at 2015-07-23 13:30:08

Hi Calum, Thanks for the plugin! I'm encountering a weird problem where emails with attachments being sent through Contact Form 7 via GmaiL SMTP are only working if the total size of the attachments is less than approx 4MB in size. If it's less than 4MB everything seems to work okay. My server php settings should be okay - these are from phpinfo(): Directive Local Value Master Value memory_limit 64M 256M post_max_size 16M 8M upload_max_filesize 16M 8M default_socket_timeout 60 60 For what it's worth this also happens with a local file (as you probably know in CF7 you can specify a local file to be attached, it doesn't have to be one uploaded with the CF7 form). Any thoughts? :)

arsus at 2015-06-25 20:30:08

I got this error when I tried with smtp.gmail. No idea how to solve it. <blockquote>Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#653 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(35) "SMTP Error: Could not authenticate." ["From"]=&gt; string(28) "webmaster@bataviatravelz.com" ["FromName"]=&gt; string(15) "Batavia Travelz" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(45) "WP Mail SMTP: Test mail to aa@gmail.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody:protected"]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader:protected"]=&gt; string(456) "Date: Thu, 25 Jun 2015 18:22:47 +0000 Return-Path: To: aa@gmail.com From: Batavia Travelz Subject: WP Mail SMTP: Test mail to aa@gmail.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader:protected"]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(0) "" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(18) "aa@gmail.com" ["Password"]=&gt; string(8) "mypassword" ["AuthType"]=&gt; string(0) "" ["Realm"]=&gt; string(0) "" ["Workstation"]=&gt; string(0) "" ["Timeout"]=&gt; int(10) ["SMTPDebug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["SMTPKeepAlive"]=&gt; bool(false) ["SingleTo"]=&gt; bool(false) ["SingleToArray"]=&gt; array(0) { } ["do_verp"]=&gt; bool(false) ["AllowEmpty"]=&gt; bool(false) ["LE"]=&gt; string(1) " " ["DKIM_selector"]=&gt; string(0) "" ["DKIM_identity"]=&gt; string(0) "" ["DKIM_passphrase"]=&gt; string(0) "" ["DKIM_domain"]=&gt; string(0) "" ["DKIM_private"]=&gt; string(0) "" ["action_function"]=&gt; string(0) "" ["XMailer"]=&gt; string(0) "" ["smtp:protected"]=&gt; object(SMTP)#652 (12) { ["Version"]=&gt; string(5) "5.2.7" ["SMTP_PORT"]=&gt; int(25) ["CRLF"]=&gt; string(2) " " ["do_debug"]=&gt; bool(true) ["Debugoutput"]=&gt; string(4) "echo" ["do_verp"]=&gt; bool(false) ["Timeout"]=&gt; int(10) ["Timelimit"]=&gt; int(30) ["smtp_conn:protected"]=&gt; int(0) ["error:protected"]=&gt; NULL ["helo_rply:protected"]=&gt; NULL ["last_reply:protected"]=&gt; string(57) "221 2.0.0 closing connection dz4sm8794243wib.17 - gsmtp " } ["to:protected"]=&gt; array(1) { [0]=&gt; array(2) { [0]=&gt; string(18) "aa@gmail.com" [1]=&gt; string(0) "" } } ["cc:protected"]=&gt; array(0) { } ["bcc:protected"]=&gt; array(0) { } ["ReplyTo:protected"]=&gt; array(0) { } ["all_recipients:protected"]=&gt; array(1) { ["ayokindo@gmail.com"]=&gt; bool(true) } ["attachment:protected"]=&gt; array(0) { } ["CustomHeader:protected"]=&gt; array(0) { } ["lastMessageID:protected"]=&gt; string(57) "" ["message_type:protected"]=&gt; string(5) "plain" ["boundary:protected"]=&gt; array(3) { [1]=&gt; string(35) "b1_b94babaf89280bace7fdd91664b4e905" [2]=&gt; string(35) "b2_b94babaf89280bace7fdd91664b4e905" [3]=&gt; string(35) "b3_b94babaf89280bace7fdd91664b4e905" } ["language:protected"]=&gt; array(18) { ["authenticate"]=&gt; string(35) "SMTP Error: Could not authenticate." ["connect_host"]=&gt; string(43) "SMTP Error: Could not connect to SMTP host." ["data_not_accepted"]=&gt; string(30) "SMTP Error: data not accepted." ["empty_message"]=&gt; string(18) "Message body empty" ["encoding"]=&gt; string(18) "Unknown encoding: " ["execute"]=&gt; string(19) "Could not execute: " ["file_access"]=&gt; string(23) "Could not access file: " ["file_open"]=&gt; string(33) "File Error: Could not open file: " ["from_failed"]=&gt; string(35) "The following From address failed: " ["instantiate"]=&gt; string(36) "Could not instantiate mail function." ["invalid_address"]=&gt; string(15) "Invalid address" ["mailer_not_supported"]=&gt; string(25) " mailer is not supported." ["provide_address"]=&gt; string(54) "You must provide at least one recipient email address." ["recipients_failed"]=&gt; string(45) "SMTP Error: The following recipients failed: " ["signing"]=&gt; string(15) "Signing Error: " ["smtp_connect_failed"]=&gt; string(22) "SMTP connect() failed." ["smtp_error"]=&gt; string(19) "SMTP server error: " ["variable_set"]=&gt; string(30) "Cannot set or reset variable: " } ["error_count:protected"]=&gt; int(2) ["sign_cert_file:protected"]=&gt; string(0) "" ["sign_key_file:protected"]=&gt; string(0) "" ["sign_key_pass:protected"]=&gt; string(0) "" ["exceptions:protected"]=&gt; bool(true) } The SMTP debugging output is shown below: SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "220 mx.google.com ESMTP dz4sm8794243wib.17 - gsmtp "SMTP -&gt; get_lines(): $data is "220 mx.google.com ESMTP dz4sm8794243wib.17 - gsmtp "SMTP -&gt; FROM SERVER:220 mx.google.com ESMTP dz4sm8794243wib.17 - gsmtp CLIENT -&gt; SMTP: EHLO www.bataviatravelz.com SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "250-mx.google.com at your service, [188.40.40.73] "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] "SMTP -&gt; get_lines(): $str is "250-SIZE 35882577 "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 "SMTP -&gt; get_lines(): $str is "250-8BITMIME "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME "SMTP -&gt; get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH "SMTP -&gt; get_lines(): $str is "250-ENHANCEDSTATUSCODES "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES "SMTP -&gt; get_lines(): $str is "250-PIPELINING "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING "SMTP -&gt; get_lines(): $str is "250-CHUNKING "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING "SMTP -&gt; get_lines(): $data was "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING "SMTP -&gt; get_lines(): $str is "250 SMTPUTF8 "SMTP -&gt; get_lines(): $data is "250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 "SMTP -&gt; FROM SERVER:250-mx.google.com at your service, [188.40.40.73] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 CLIENT -&gt; SMTP: AUTH LOGIN SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "334 VXNlcm5hbWU6 "SMTP -&gt; get_lines(): $data is "334 VXNlcm5hbWU6 "SMTP -&gt; FROM SERVER:334 VXNlcm5hbWU6 CLIENT -&gt; SMTP: YXlva2luZG9AZ21haWwuY29t SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "334 UGFzc3dvcmQ6 "SMTP -&gt; get_lines(): $data is "334 UGFzc3dvcmQ6 "SMTP -&gt; FROM SERVER:334 UGFzc3dvcmQ6 CLIENT -&gt; SMTP: YXMyMDc1aGM= SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "534-5.7.14 get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 cOBQqQLd1QdmKuKckq5k04Yr5K9C9BiVZqcxw9_U2ZfSb1iYrXmL9U-cliYyIwO9gGu8-x "SMTP -&gt; get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 CiTrxcIsRt4vrKYfrrkyNjp2oL8gI5URzLUo5_eR1NrZb1ThEOYOPlAVgHCxhAFsI9mefR "SMTP -&gt; get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 5igz2IVMHGvKcgVXO5EUwTymCC5mBQpuAum9WpHOvQ7Eu8g_EAak_hXmXvnMBZE2Bl_0ru "SMTP -&gt; get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 SjK73hly63RSnG3S7TWIDNFU9WBI&gt; Please log in via your web browser and "SMTP -&gt; get_lines(): $data is "534-5.7.14 Please log in via your web browser and "SMTP -&gt; get_lines(): $data was "534-5.7.14 Please log in via your web browser and "SMTP -&gt; get_lines(): $str is "534-5.7.14 then try again. "SMTP -&gt; get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. "SMTP -&gt; get_lines(): $data was "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. "SMTP -&gt; get_lines(): $str is "534-5.7.14 Learn more at "SMTP -&gt; get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at "SMTP -&gt; get_lines(): $data was "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at "SMTP -&gt; get_lines(): $str is "534 5.7.14 https://support.google.com/mail/answer/78754 dz4sm8794243wib.17 - gsmtp "SMTP -&gt; get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 dz4sm8794243wib.17 - gsmtp "SMTP -&gt; FROM SERVER:534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 dz4sm8794243wib.17 - gsmtp SMTP -&gt; ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 dz4sm8794243wib.17 - gsmtp CLIENT -&gt; SMTP: QUIT SMTP -&gt; get_lines(): $data was ""SMTP -&gt; get_lines(): $str is "221 2.0.0 closing connection dz4sm8794243wib.17 - gsmtp "SMTP -&gt; get_lines(): $data is "221 2.0.0 closing connection dz4sm8794243wib.17 - gsmtp "SMTP -&gt; FROM SERVER:221 2.0.0 closing connection dz4sm8794243wib.17 - gsmtp </blockquote> Could you please help me with this?

TAM at 2015-07-07 20:41:32

Test Message Sent The result was: bool(false) The full debugging output is shown below: object(PHPMailer)#9108 (69) { ["Version"]=&gt; string(5) "5.2.7" ["Priority"]=&gt; int(3) ["CharSet"]=&gt; string(5) "UTF-8" ["ContentType"]=&gt; string(10) "text/plain" ["Encoding"]=&gt; string(4) "8bit" ["ErrorInfo"]=&gt; string(22) "SMTP connect() failed." ["From"]=&gt; string(16) "xxxx@gmail.com" ["FromName"]=&gt; string(6) "xxxxx" ["Sender"]=&gt; string(0) "" ["ReturnPath"]=&gt; string(0) "" ["Subject"]=&gt; string(40) "WP Mail SMTP: Test mail to xxxx@me.com" ["Body"]=&gt; string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=&gt; string(0) "" ["Ical"]=&gt; string(0) "" ["MIMEBody":protected]=&gt; string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=&gt; string(400) "Date: Tue, 7 Jul 2015 18:31:43 +0000 Return-Path: To: xxxx@me.com From: TAM Subject: WP Mail SMTP: Test mail to xxxx@me.com Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=&gt; string(0) "" ["WordWrap"]=&gt; int(0) ["Mailer"]=&gt; string(4) "smtp" ["Sendmail"]=&gt; string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=&gt; bool(true) ["PluginDir"]=&gt; string(0) "" ["ConfirmReadingTo"]=&gt; string(0) "" ["Hostname"]=&gt; string(10) "proacg.com" ["MessageID"]=&gt; string(0) "" ["MessageDate"]=&gt; string(0) "" ["Host"]=&gt; string(14) "smtp.gmail.com" ["Port"]=&gt; string(3) "465" ["Helo"]=&gt; string(0) "" ["SMTPSecure"]=&gt; string(3) "ssl" ["SMTPAuth"]=&gt; bool(true) ["Username"]=&gt; string(16) "xxxxxx@gmail.com" ["Password"]=&gt; st