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

1,301 thoughts on “WP Mail SMTP v0.8”

  1. 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.

  2. 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

  3. 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.

    1. Haven’t considered anything like this. The plugin is very simple, just enables SMTP, I leave the rest up to the user. 🙂

  4. 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”]=>
    string(18) “MYSITE.com”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(52) “WP Mail SMTP: Test mail to especial@yahoo.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    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]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(9) “localhost”
    [“Port”]=>
    string(2) “25”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAuth”]=>
    bool(true)
    [“Username”]=>
    string(29) “hello@MYSITE.com”
    [“Password”]=>
    string(15) “zuy)hipa342@19jyr”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#708 (12) {
    [“Version”]=>
    string(5) “5.2.7”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(10)
    [“Timelimit”]=>
    int(30)
    [“smtp_conn”:protected]=>
    bool(false)
    [“error”:protected]=>
    NULL
    [“helo_rply”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(0) “”
    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(25) “especial@yahoo.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“especial@yahoo.com”]=>
    bool(true)
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(53) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_64f253481a333bb8baa67c2b14c12afd”
    [2]=>
    string(35) “b2_64f253481a333bb8baa67c2b14c12afd”
    [3]=>
    string(35) “b3_64f253481a333bb8baa67c2b14c12afd”
    }
    [“language”:protected]=>
    array(18) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(15) “Invalid address”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }

    The SMTP debugging output is shown below:

    SMTP -> ERROR: Failed to connect to server: (0)

    How do I check the server’s smtp settings so I can connect to the server?

  5. Update. It’s working. I checked the “return email” box and I am using tls encryption. The email arrived in my inbox.

  6. 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?

  7. 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.

      1. yes, so I discovered. I realized ten minutes afterwards that I’d incorrectly assumed that yours was a form set up. Sorry.

  8. 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”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(21) “multipart/alternative”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(22) “SMTP connect() failed.”
    [“From”]=>
    string(20) “luvbyrdluv@gmail.com”
    [“FromName”]=>
    string(7) “LuvByrd”
    [“Sender”]=>
    string(20) “luvbyrdluv@gmail.com”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(45) “WP Mail SMTP: Test mail to mikereff@gmail.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    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]=>
    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]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    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) “luvbyrdluv@gmail.com”
    [“Password”]=>
    string(13) “Vivelibre2337”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#571 (12) {
    [“Version”]=>
    string(5) “5.2.7”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(10)
    [“Timelimit”]=>
    int(30)
    [“smtp_conn”:protected]=>
    bool(false)
    [“error”:protected]=>
    NULL
    [“helo_rply”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(0) “”
    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(18) “mikereff@gmail.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“mikereff@gmail.com”]=>
    bool(true)
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(50) “”
    [“message_type”:protected]=>
    string(3) “alt”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_b97cb2a437d6c6998a151e191540b0d3”
    [2]=>
    string(35) “b2_b97cb2a437d6c6998a151e191540b0d3”
    [3]=>
    string(35) “b3_b97cb2a437d6c6998a151e191540b0d3”
    }
    [“language”:protected]=>
    array(18) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(15) “Invalid address”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }
    The SMTP debugging output is shown below:
    SMTP -> ERROR: Failed to connect to server: Connection refused (111)

  9. 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.

  10. Hello!
    I use wp-mail smtp plugin, please, help me to understand, how it works.

    is there a domain validation for e-mails?

  11. 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?

  12. 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?

  13. 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 🙂

  14. 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

  15. 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/

  16. 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”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“From”]=>
    string(19) “contact@doncoqui.tv”
    [“FromName”]=>
    string(8) “Doncoqui”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(47) “WP Mail SMTP: Test mail to nizamjan73@gmail.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    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]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(16) “smtp.doncoqui.tv”
    [“Port”]=>
    string(2) “25”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(0) “”
    [“SMTPAuth”]=>
    bool(true)
    [“Username”]=>
    string(19) “test786@doncoqui.tv”
    [“Password”]=>
    string(13) “Yaraheemu786!”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#607 (12) {
    [“Version”]=>
    string(5) “5.2.7”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(10)
    [“Timelimit”]=>
    int(30)
    [“smtp_conn”:protected]=>
    int(0)
    [“error”:protected]=>
    NULL
    [“helo_rply”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(64) “221 p3plcpnl0802.prod.phx3.secureserver.net closing connection

    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(20) “nizamjan73@gmail.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“nizamjan73@gmail.com”]=>
    bool(true)
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(50) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_515d2a6ca97a1b3b9f85ac0df9ef301b”
    [2]=>
    string(35) “b2_515d2a6ca97a1b3b9f85ac0df9ef301b”
    [3]=>
    string(35) “b3_515d2a6ca97a1b3b9f85ac0df9ef301b”
    }
    [“language”:protected]=>
    array(18) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(15) “Invalid address”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }
    The SMTP debugging output is shown below:
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700
    “SMTP -> get_lines(): $data is “220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700
    “SMTP -> get_lines(): $data was “220-p3plcpnl0802.prod.phx3.secureserver.net ESMTP Exim 4.84 #2 Tue, 16 Dec 2014 14:59:09 -0700
    “SMTP -> get_lines(): $str is “220-We do not authorize the use of this system to transport unsolicited,
    “SMTP -> 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 -> 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 -> get_lines(): $str is “220 and/or bulk e-mail.
    “SMTP -> 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 -> 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 -> SMTP: EHLO http://www.doncoqui.tv
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115]
    “SMTP -> get_lines(): $data is “250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115]
    “SMTP -> get_lines(): $data was “250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115]
    “SMTP -> get_lines(): $str is “250-SIZE 52428800
    “SMTP -> get_lines(): $data is “250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115]
    250-SIZE 52428800
    “SMTP -> get_lines(): $data was “250-p3plcpnl0802.prod.phx3.secureserver.net Hello p3plcpnl0802.prod.phx3.secureserver.net [50.62.177.115]
    250-SIZE 52428800
    “SMTP -> get_lines(): $str is “250-8BITMIME
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-PIPELINING
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-AUTH PLAIN LOGIN
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-STARTTLS
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250 HELP
    “SMTP -> 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 -> 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 -> SMTP: AUTH LOGIN
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “334 VXNlcm5hbWU6
    “SMTP -> get_lines(): $data is “334 VXNlcm5hbWU6
    “SMTP -> FROM SERVER:334 VXNlcm5hbWU6
    CLIENT -> SMTP: dGVzdDc4NkBkb25jb3F1aS50dg==
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “334 UGFzc3dvcmQ6
    “SMTP -> get_lines(): $data is “334 UGFzc3dvcmQ6
    “SMTP -> FROM SERVER:334 UGFzc3dvcmQ6
    CLIENT -> SMTP: WWFyYWhlZW11Nzg2IQ==
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “535 Incorrect authentication data
    “SMTP -> get_lines(): $data is “535 Incorrect authentication data
    “SMTP -> FROM SERVER:535 Incorrect authentication data
    SMTP -> ERROR: Password command failed: 535 Incorrect authentication data
    CLIENT -> SMTP: QUIT
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “221 p3plcpnl0802.prod.phx3.secureserver.net closing connection
    “SMTP -> get_lines(): $data is “221 p3plcpnl0802.prod.phx3.secureserver.net closing connection
    “SMTP -> FROM SERVER:221 p3plcpnl0802.prod.phx3.secureserver.net closing connection

  17. 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”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(0) “”
    [“From”]=>
    string(22) “contact@thekarrier.com”
    [“FromName”]=>
    string(10) “thekarrier”
    [“Sender”]=>
    string(22) “contact@thekarrier.com”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(47) “WP Mail SMTP: Test mail to rishi@thekarrier.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    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]=>
    string(82) “To: rishi@thekarrier.com
    Subject: WP Mail SMTP: Test mail to rishi@thekarrier.com

    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “mail”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(9) “localhost”
    [“Port”]=>
    int(25)
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAuth”]=>
    bool(false)
    [“Username”]=>
    string(0) “”
    [“Password”]=>
    string(0) “”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    NULL
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(20) “rishi@thekarrier.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“rishi@thekarrier.com”]=>
    bool(true)
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(49) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_72ef849d7ca295183f9e5e4436390592”
    [2]=>
    string(35) “b2_72ef849d7ca295183f9e5e4436390592”
    [3]=>
    string(35) “b3_72ef849d7ca295183f9e5e4436390592”
    }
    [“language”:protected]=>
    array(0) {
    }
    [“error_count”:protected]=>
    int(0)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }
    The SMTP debugging output is shown below:

  18. 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.

  19. 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

  20. 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?

  21. 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!

  22. Hi Callum,

    I’m using wordpress 4.1 and gravity forms 1.9.1.2 Gravity forms recommended your plug in for their forms.
    We’re having a problem sending forms to gmail accounts – it’s stopped working! It was working ok (though some forms refused to send to gmail) now, nothing goes through to gmail.

    The website will forward to my webmail and BT accounts.
    We have set these accounts with forwarders to my gmail account.

    If I email the BT andWebmail accounts direct, they forward to gmail, but they will not forward anything which comes from the website – my gravity forms.

    I need to get the forms to gmail as I need the use of the ‘canned responses’ facility on gmail to manage my booking correspondence.

    Can you advise please?

    Kind regards,

    Cathie

  23. Hi Callum,

    Thank you for this plugin.

    I have one feature request: the password for SMTP authentication is stored (and displayed) in plain text. Is it possible to make this a password field (and preferably encrypt it in the database)?

  24. 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.

  25. 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”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(0) “”
    [“From”]=>
    string(22) “jackie(at)501partners.com”
    [“FromName”]=>
    string(11) “501Partners”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(50) “WP Mail SMTP: Test mail to caroline(at)cpdesigns.info”
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    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]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(14) “smtp.gmail.com”
    [“Port”]=>
    string(3) “465”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAuth”]=>
    bool(true)
    [“Username”]=>
    string(21) “allan(at)501partners.com”
    [“Password”]=>
    string(10) “Jessica1!g”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#1430 (12) {
    [“Version”]=>
    string(5) “5.2.7”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(10)
    [“Timelimit”]=>
    int(30)
    [“smtp_conn”:protected]=>
    int(0)
    [“error”:protected]=>
    NULL
    [“helo_rply”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(57) “221 2.0.0 closing connection t32sm3494483qgd.21 – gsmtp

    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(23) “caroline(at)cpdesigns.info”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“caroline(at)cpdesigns.info”]=>
    bool(true)
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(50) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_57e8a37ebd8b59bfdba739c29fdaba97”
    [2]=>
    string(35) “b2_57e8a37ebd8b59bfdba739c29fdaba97”
    [3]=>
    string(35) “b3_57e8a37ebd8b59bfdba739c29fdaba97”
    }
    [“language”:protected]=>
    array(0) {
    }
    [“error_count”:protected]=>
    int(0)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }
    The SMTP debugging output is shown below:
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “220 mx.google.com ESMTP t32sm3494483qgd.21 – gsmtp
    “SMTP -> get_lines(): $data is “220 mx.google.com ESMTP t32sm3494483qgd.21 – gsmtp
    “SMTP -> FROM SERVER:220 mx.google.com ESMTP t32sm3494483qgd.21 – gsmtp
    CLIENT -> SMTP: EHLO 501partners.com
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250-mx.google.com at your service, [2604:180::8281:5e47]
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [2604:180::8281:5e47]
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [2604:180::8281:5e47]
    “SMTP -> get_lines(): $str is “250-SIZE 35882577
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [2604:180::8281:5e47]
    250-SIZE 35882577
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [2604:180::8281:5e47]
    250-SIZE 35882577
    “SMTP -> get_lines(): $str is “250-8BITMIME
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [2604:180::8281:5e47]
    250-SIZE 35882577
    250-8BITMIME
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [2604:180::8281:5e47]
    250-SIZE 35882577
    250-8BITMIME
    “SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-ENHANCEDSTATUSCODES
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-PIPELINING
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-CHUNKING
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250 SMTPUTF8
    “SMTP -> 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 -> 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 -> SMTP: AUTH LOGIN
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “334 VXNlcm5hbWU6
    “SMTP -> get_lines(): $data is “334 VXNlcm5hbWU6
    “SMTP -> FROM SERVER:334 VXNlcm5hbWU6
    CLIENT -> SMTP: YWxsYW5ANTAxcGFydG5lcnMuY29t
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “334 UGFzc3dvcmQ6
    “SMTP -> get_lines(): $data is “334 UGFzc3dvcmQ6
    “SMTP -> FROM SERVER:334 UGFzc3dvcmQ6
    CLIENT -> SMTP: SmVzc2ljYTEhZw==
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “235 2.7.0 Accepted
    “SMTP -> get_lines(): $data is “235 2.7.0 Accepted
    “SMTP -> FROM SERVER:235 2.7.0 Accepted
    CLIENT -> SMTP: MAIL FROM:
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250 2.1.0 OK t32sm3494483qgd.21 – gsmtp
    “SMTP -> get_lines(): $data is “250 2.1.0 OK t32sm3494483qgd.21 – gsmtp
    “SMTP -> FROM SERVER:250 2.1.0 OK t32sm3494483qgd.21 – gsmtp
    CLIENT -> SMTP: RCPT TO:
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250 2.1.5 OK t32sm3494483qgd.21 – gsmtp
    “SMTP -> get_lines(): $data is “250 2.1.5 OK t32sm3494483qgd.21 – gsmtp
    “SMTP -> FROM SERVER:250 2.1.5 OK t32sm3494483qgd.21 – gsmtp
    CLIENT -> SMTP: DATA
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “354 Go ahead t32sm3494483qgd.21 – gsmtp
    “SMTP -> get_lines(): $data is “354 Go ahead t32sm3494483qgd.21 – gsmtp
    “SMTP -> FROM SERVER:354 Go ahead t32sm3494483qgd.21 – gsmtp
    CLIENT -> SMTP: Date: Thu, 23 Apr 2015 15:52:55 +0000
    CLIENT -> SMTP: Return-Path:
    CLIENT -> SMTP: To: caroline(at)cpdesigns.info
    CLIENT -> SMTP: From: 501Partners
    CLIENT -> SMTP: Subject: WP Mail SMTP: Test mail to caroline(at)cpdesigns.info
    CLIENT -> SMTP: Message-ID:
    CLIENT -> SMTP: X-Priority: 3
    CLIENT -> SMTP: X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
    CLIENT -> SMTP: MIME-Version: 1.0
    CLIENT -> SMTP: Content-Type: text/plain; charset=UTF-8
    CLIENT -> SMTP: Content-Transfer-Encoding: 8bit
    CLIENT -> SMTP:
    CLIENT -> SMTP: This is a test email generated by the WP Mail SMTP WordPress plugin.
    CLIENT -> SMTP:
    CLIENT -> SMTP: .
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250 2.0.0 OK 1429804376 t32sm3494483qgd.21 – gsmtp
    “SMTP -> get_lines(): $data is “250 2.0.0 OK 1429804376 t32sm3494483qgd.21 – gsmtp
    “SMTP -> FROM SERVER:250 2.0.0 OK 1429804376 t32sm3494483qgd.21 – gsmtp
    CLIENT -> SMTP: QUIT
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “221 2.0.0 closing connection t32sm3494483qgd.21 – gsmtp
    “SMTP -> get_lines(): $data is “221 2.0.0 closing connection t32sm3494483qgd.21 – gsmtp
    “SMTP -> FROM SERVER:221 2.0.0 closing connection t32sm3494483qgd.21 – gsmtp

    1. 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.

  26. 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,

  27. 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”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(10) “iso-8859-1”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(0) “”
    [“From”]=>
    string(14) “root@localhost”
    [“FromName”]=>
    string(9) “Root User”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(0) “”
    [“Body”]=>
    string(0) “”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(0) “”
    [“MIMEHeader”:protected]=>
    string(0) “”
    [“mailHeader”:protected]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “mail”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(9) “localhost”
    [“Port”]=>
    int(25)
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(0) “”
    [“SMTPAuth”]=>
    bool(false)
    [“Username”]=>
    string(0) “”
    [“Password”]=>
    string(0) “”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    NULL
    [“to”:protected]=>
    array(0) {
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(0) {
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(0) “”
    [“message_type”:protected]=>
    string(0) “”
    [“boundary”:protected]=>
    array(0) {
    }
    [“language”:protected]=>
    array(0) {
    }
    [“error_count”:protected]=>
    int(0)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }
    The SMTP debugging output is shown below:

    1. 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.

  28. Hello Sir,

    I am using your plugin but could not send any email showing me error SMTP -> 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.

    1. 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).

      1. 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 ?

        1. I don’t know. I’d guess it’s a firewall / routing issue, but I’m not sure. I recommend contacting your system administrator.

  29. I got this error when I tried with smtp.gmail. No idea how to solve it.

    Test Message Sent
    The result was:
    bool(false)
    The full debugging output is shown below:
    object(PHPMailer)#653 (69) {
    [“Version”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“From”]=>
    string(28) “webmaster@bataviatravelz.com”
    [“FromName”]=>
    string(15) “Batavia Travelz”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(45) “WP Mail SMTP: Test mail to aa@gmail.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody:protected”]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader:protected”]=>
    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”]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(14) “smtp.gmail.com”
    [“Port”]=>
    string(3) “465”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAuth”]=>
    bool(true)
    [“Username”]=>
    string(18) “aa@gmail.com”
    [“Password”]=>
    string(8) “mypassword”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp:protected”]=>
    object(SMTP)#652 (12) {
    [“Version”]=>
    string(5) “5.2.7”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(10)
    [“Timelimit”]=>
    int(30)
    [“smtp_conn:protected”]=>
    int(0)
    [“error:protected”]=>
    NULL
    [“helo_rply:protected”]=>
    NULL
    [“last_reply:protected”]=>
    string(57) “221 2.0.0 closing connection dz4sm8794243wib.17 – gsmtp

    }
    [“to:protected”]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(18) “aa@gmail.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc:protected”]=>
    array(0) {
    }
    [“bcc:protected”]=>
    array(0) {
    }
    [“ReplyTo:protected”]=>
    array(0) {
    }
    [“all_recipients:protected”]=>
    array(1) {
    [“ayokindo@gmail.com”]=>
    bool(true)
    }
    [“attachment:protected”]=>
    array(0) {
    }
    [“CustomHeader:protected”]=>
    array(0) {
    }
    [“lastMessageID:protected”]=>
    string(57) “”
    [“message_type:protected”]=>
    string(5) “plain”
    [“boundary:protected”]=>
    array(3) {
    [1]=>
    string(35) “b1_b94babaf89280bace7fdd91664b4e905”
    [2]=>
    string(35) “b2_b94babaf89280bace7fdd91664b4e905”
    [3]=>
    string(35) “b3_b94babaf89280bace7fdd91664b4e905”
    }
    [“language:protected”]=>
    array(18) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(15) “Invalid address”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    }
    [“error_count:protected”]=>
    int(2)
    [“sign_cert_file:protected”]=>
    string(0) “”
    [“sign_key_file:protected”]=>
    string(0) “”
    [“sign_key_pass:protected”]=>
    string(0) “”
    [“exceptions:protected”]=>
    bool(true)
    }
    The SMTP debugging output is shown below:
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “220 mx.google.com ESMTP dz4sm8794243wib.17 – gsmtp
    “SMTP -> get_lines(): $data is “220 mx.google.com ESMTP dz4sm8794243wib.17 – gsmtp
    “SMTP -> FROM SERVER:220 mx.google.com ESMTP dz4sm8794243wib.17 – gsmtp
    CLIENT -> SMTP: EHLO http://www.bataviatravelz.com
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250-mx.google.com at your service, [188.40.40.73]
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [188.40.40.73]
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [188.40.40.73]
    “SMTP -> get_lines(): $str is “250-SIZE 35882577
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [188.40.40.73]
    250-SIZE 35882577
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [188.40.40.73]
    250-SIZE 35882577
    “SMTP -> get_lines(): $str is “250-8BITMIME
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [188.40.40.73]
    250-SIZE 35882577
    250-8BITMIME
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [188.40.40.73]
    250-SIZE 35882577
    250-8BITMIME
    “SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-ENHANCEDSTATUSCODES
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-PIPELINING
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250-CHUNKING
    “SMTP -> 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 -> 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 -> get_lines(): $str is “250 SMTPUTF8
    “SMTP -> 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 -> 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 -> SMTP: AUTH LOGIN
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “334 VXNlcm5hbWU6
    “SMTP -> get_lines(): $data is “334 VXNlcm5hbWU6
    “SMTP -> FROM SERVER:334 VXNlcm5hbWU6
    CLIENT -> SMTP: YXlva2luZG9AZ21haWwuY29t
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “334 UGFzc3dvcmQ6
    “SMTP -> get_lines(): $data is “334 UGFzc3dvcmQ6
    “SMTP -> FROM SERVER:334 UGFzc3dvcmQ6
    CLIENT -> SMTP: YXMyMDc1aGM=
    SMTP -> get_lines(): $data was “”SMTP -> 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 -> 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 -> 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 -> 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> Please log in via your web browser and
    “SMTP -> get_lines(): $data is “534-5.7.14 Please log in via your web browser and
    “SMTP -> get_lines(): $data was “534-5.7.14 Please log in via your web browser and
    “SMTP -> get_lines(): $str is “534-5.7.14 then try again.
    “SMTP -> get_lines(): $data is “534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    “SMTP -> get_lines(): $data was “534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    “SMTP -> get_lines(): $str is “534-5.7.14 Learn more at
    “SMTP -> 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 -> 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 -> get_lines(): $str is “534 5.7.14 https://support.google.com/mail/answer/78754 dz4sm8794243wib.17 – gsmtp
    “SMTP -> 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 -> 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 -> 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 -> SMTP: QUIT
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “221 2.0.0 closing connection dz4sm8794243wib.17 – gsmtp
    “SMTP -> get_lines(): $data is “221 2.0.0 closing connection dz4sm8794243wib.17 – gsmtp
    “SMTP -> FROM SERVER:221 2.0.0 closing connection dz4sm8794243wib.17 – gsmtp

    Could you please help me with this?

  30. Test Message Sent
    The result was:
    bool(false)
    The full debugging output is shown below:
    object(PHPMailer)#9108 (69) {
    [“Version”]=>
    string(5) “5.2.7”
    [“Priority”]=>
    int(3)
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(22) “SMTP connect() failed.”
    [“From”]=>
    string(16) “xxxx@gmail.com”
    [“FromName”]=>
    string(6) “xxxxx”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(40) “WP Mail SMTP: Test mail to xxxx@me.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    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]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(10) “proacg.com”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(0) “”
    [“Host”]=>
    string(14) “smtp.gmail.com”
    [“Port”]=>
    string(3) “465”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAuth”]=>
    bool(true)
    [“Username”]=>
    string(16) “xxxxxx@gmail.com”
    [“Password”]=>
    string(16) “xxxxxxxxxxxx”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(10)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#9110 (12) {
    [“Version”]=>
    string(5) “5.2.7”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(10)
    [“Timelimit”]=>
    int(30)
    [“smtp_conn”:protected]=>
    bool(false)
    [“error”:protected]=>
    NULL
    [“helo_rply”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(0) “”
    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(13) “xxxx@me.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“xxxx@me.com”]=>
    bool(true)
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(45) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_55607efea0e659200f927c76834cde9c”
    [2]=>
    string(35) “b2_55607efea0e659200f927c76834cde9c”
    [3]=>
    string(35) “b3_55607efea0e659200f927c76834cde9c”
    }
    [“language”:protected]=>
    array(18) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(15) “Invalid address”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    }
    The SMTP debugging output is shown below:
    SMTP -> ERROR: Failed to connect to server: Connection timed out (110)

  31. 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? 🙂

    1. Apologies for the slow reply. Never heard of attachments via contact forms, not very familiar with Contact Form 7. It could be a limit on the Gmail side however. Not certain about that, just guessing. Or maybe there’s something in the PHP settings that limits the size of outgoing requests. That seems unlikely to me though. Sorry I can’t be of more help.

    1. I’d suggest checking the form you’re using. This plugin only changes how emails are sent, beyond that, the rest is up to the form and your email server.

  32. hi Callum Macdonald,

    Thank you for your great plugin.
    It really useful.:)

    But if there any code i can add to hide the the password??
    Can you make the email password appearing ******** when I type in the password?

    Hope to hear from you soon. Great thanks in advance.
    And keep up the good job..:)

  33. Hi Callum,

    The plugin rocks, thank you. But i have an issue.

    I had setup the plugin for a client, it was working perfectly until recently they switched to an Office 365 platform. No matter what i try the submissions from the contact form do not reach their new inbox. But it works with my gmail account and i do receive the submissions.

    Is this something to do with the settings used?

  34. Hello,

    I am having an issue where after our user registers they receive the first confirmation email but then get several other emails (duplicates) about 4 or so directly after the first. We are also using Gravity Forms and Events Plus plugin but I don’t believe these are the issue (as far as we can tell). Any ideas on how to fix the issue?

    Thanks!

  35. Hello Callum,

    I have set up the email smtp to send emails from orders@turbowax.com, but for some reason is not redirecting any emails with the same domain. for example, email is coming from order@turbowax.com (this email was set up via bluhost) to juan@turbowax.com (this email is currently being controlled by google apps). i did put my email address elflacoloco17@gmail.com and the test email goes through. this is the error that i get when i try the test with juan@turbowax.com

    Test Message Sent
    The result was:
    bool(false)
    The full debugging output is shown below:
    object(PHPMailer)#664 (75) {
    [“Version”]=>
    string(6) “5.2.14”
    [“Priority”]=>
    NULL
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(83) “SMTP Error: The following recipients failed: juan@turbowax.com: No Such User Here

    [“From”]=>
    string(18) “Order@turbowax.com”
    [“FromName”]=>
    string(9) “Turbo Wax”
    [“Sender”]=>
    string(0) “”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(44) “WP Mail SMTP: Test mail to juan@turbowax.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    string(374) “Date: Wed, 24 Feb 2016 00:38:53 +0000
    To: juan@turbowax.com
    From: Turbo Wax
    Subject: WP Mail SMTP: Test mail to juan@turbowax.com
    Message-ID:
    X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit


    [“mailHeader”:protected]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(31) “Wed, 24 Feb 2016 00:38:53 +0000”
    [“Host”]=>
    string(19) “box791.bluehost.com”
    [“Port”]=>
    string(3) “465”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAutoTLS”]=>
    bool(true)
    [“SMTPAuth”]=>
    bool(true)
    [“SMTPOptions”]=>
    array(0) {
    }
    [“Username”]=>
    string(18) “order@turbowax.com”
    [“Password”]=>
    string(15) “%/Ggs$1H9XrGc5^”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(300)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#731 (13) {
    [“Version”]=>
    string(6) “5.2.14”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(300)
    [“Timelimit”]=>
    int(300)
    [“smtp_conn”:protected]=>
    NULL
    [“error”:protected]=>
    array(4) {
    [“error”]=>
    string(0) “”
    [“detail”]=>
    string(0) “”
    [“smtp_code”]=>
    string(0) “”
    [“smtp_code_ex”]=>
    string(0) “”
    }
    [“helo_rply”:protected]=>
    NULL
    [“server_caps”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(44) “221 box791.bluehost.com closing connection

    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(17) “juan@turbowax.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“juan@turbowax.com”]=>
    bool(true)
    }
    [“RecipientsQueue”:protected]=>
    array(0) {
    }
    [“ReplyToQueue”:protected]=>
    array(0) {
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(51) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_b9d741ef1a448b45c108e443201a2b58”
    [2]=>
    string(35) “b2_b9d741ef1a448b45c108e443201a2b58”
    [3]=>
    string(35) “b3_b9d741ef1a448b45c108e443201a2b58”
    }
    [“language”:protected]=>
    array(19) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(17) “Invalid address: ”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    [“extension_missing”]=>
    string(19) “Extension missing: ”
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_extracerts_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    [“uniqueid”:protected]=>
    string(32) “b9d741ef1a448b45c108e443201a2b58”
    }
    The SMTP debugging output is shown below:
    2016-02-24 00:38:53 Connection: opening to ssl://box791.bluehost.com:465, timeout=300, options=array (
    )
    2016-02-24 00:38:53 Connection: opened
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “220-box791.bluehost.com ESMTP Exim 4.84 #2 Tue, 23 Feb 2016 17:38:55 -0700

    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “220-box791.bluehost.com ESMTP Exim 4.84 #2 Tue, 23 Feb 2016 17:38:55 -0700

    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “220-We do not authorize the use of this system to transport unsolicited,

    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “220-box791.bluehost.com ESMTP Exim 4.84 #2 Tue, 23 Feb 2016 17:38:55 -0700
    220-We do not authorize the use of this system to transport unsolicited,

    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “220 and/or bulk e-mail.

    2016-02-24 00:38:55 SERVER -> CLIENT: 220-box791.bluehost.com ESMTP Exim 4.84 #2 Tue, 23 Feb 2016 17:38:55 -0700
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail.
    2016-02-24 00:38:55 CLIENT -> SERVER: EHLO http://www.turbowax.com
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “250-box791.bluehost.com Hello http://www.turbowax.com [50.87.192.134]

    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “250-box791.bluehost.com Hello http://www.turbowax.com [50.87.192.134]

    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “250-SIZE 52428800

    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “250-box791.bluehost.com Hello http://www.turbowax.com [50.87.192.134]
    250-SIZE 52428800

    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “250-8BITMIME

    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “250-box791.bluehost.com Hello http://www.turbowax.com [50.87.192.134]
    250-SIZE 52428800
    250-8BITMIME

    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “250-AUTH PLAIN LOGIN

    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “250-box791.bluehost.com Hello http://www.turbowax.com [50.87.192.134]
    250-SIZE 52428800
    250-8BITMIME
    250-AUTH PLAIN LOGIN

    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “250 HELP

    2016-02-24 00:38:55 SERVER -> CLIENT: 250-box791.bluehost.com Hello http://www.turbowax.com [50.87.192.134]
    250-SIZE 52428800
    250-8BITMIME
    250-AUTH PLAIN LOGIN
    250 HELP
    2016-02-24 00:38:55 Auth method requested: UNKNOWN
    2016-02-24 00:38:55 Auth methods available on the server: PLAIN,LOGIN
    2016-02-24 00:38:55 Auth method selected: LOGIN
    2016-02-24 00:38:55 CLIENT -> SERVER: AUTH LOGIN
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “334 VXNlcm5hbWU6

    2016-02-24 00:38:55 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    2016-02-24 00:38:55 CLIENT -> SERVER: b3JkZXJAdHVyYm93YXguY29t
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “334 UGFzc3dvcmQ6

    2016-02-24 00:38:55 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    2016-02-24 00:38:55 CLIENT -> SERVER: JS9HZ3MkMUg5WHJHYzVe
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “235 Authentication succeeded

    2016-02-24 00:38:55 SERVER -> CLIENT: 235 Authentication succeeded
    2016-02-24 00:38:55 CLIENT -> SERVER: MAIL FROM:
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “250 OK

    2016-02-24 00:38:55 SERVER -> CLIENT: 250 OK
    2016-02-24 00:38:55 CLIENT -> SERVER: RCPT TO:
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “550 No Such User Here

    2016-02-24 00:38:55 SERVER -> CLIENT: 550 No Such User Here
    2016-02-24 00:38:55 SMTP ERROR: RCPT TO command failed: 550 No Such User Here
    2016-02-24 00:38:55 CLIENT -> SERVER: QUIT
    2016-02-24 00:38:55 SMTP -> get_lines(): $data is “”
    2016-02-24 00:38:55 SMTP -> get_lines(): $str is “221 box791.bluehost.com closing connection

    2016-02-24 00:38:55 SERVER -> CLIENT: 221 box791.bluehost.com closing connection
    2016-02-24 00:38:55 Connection: closed
    2016-02-24 00:38:55 SMTP Error: The following recipients failed: juan@turbowax.com: No Such User Here

  36. Hello,
    I am using the last version of your plugin 0.9.5 with the last wordpress version 4.4.2 but it doesn’t work.
    in the setting page, I setted a gmail account but if I try to send a test email, I get a blank page.
    The same thing happens in the booking page of mi site which uses WP Mail SMTP plugin.
    Could you help me please?

  37. Have you heard of any issues where the from name is not being sent through? An organization’s website is trying to send using the phpMail function and it will send, but does not insert the provided name, nor any value. This means that most filters will automatically reject the message. The funny thing is that we had it working nicely earlier this year, but within the past month or so, it stopped.

    WP 4.3.1 (update planned)
    WP-Mail-SMTP 0.95

    The website is login-only, as it is for nurses, but can provide access, if needed.

    Thanks for the help!
    -jason

  38. Hi Callum.

    Thank you for the great plugin. I use it effectively on my site: http://www.alexanderjade.com.

    My problem is that I’m just finishing a complete site makeover on my loclahost with WAMP 64 and I was ready to FTP and replace my old site on my hostgator server, but my WP Mail SMTP test kept failing.

    Since your plugin works well on my current site, should I assume that my test site settings will work? My test site WP Mail SMTP settings are IDENTICAL to settings on my hosted site, and the hosted site’s email test always works.

    I DO have another plugin installed which has mail settings, Quforms, a form plugin that sends confirmation messages after form completion. Might this affect your plugin?

    Thanks again for your plugin. Running over 3 years with not one problem!

  39. Hello Callum,

    I have this widget added to my page. It is only accessible if some one creates an account. When an user registers for a new account, I am supposed to get an email stating some one has created an account.

    I’ve set up my SMTP options. Test email is going through perfectly, but when I create a test account, I receive no email.

    Please help and thank you!

  40. Hi Callum.

    Thanks for the great plugin. Things have worked with all sites I have worked on with this plugin. Never an issue!

    I finally have one and have worked on this for 8 1/2 hours. UGHHH! I migrated a site: http://www.plusorigin.com to http://www.sp8ce.design.

    There are two things that aren’t the same when I have been analayzing: 1) .com VS .design 2) .com is HostGator and .design is Godaddy.

    Godaddy says there are no issues. Here is the error message.

    Can you help me out? Thanks a lot!!

    Test Message Sent
    The result was:
    bool(false)
    The full debugging output is shown below:
    object(PHPMailer)#2209 (75) {
    [“Version”]=>
    string(6) “5.2.14”
    [“Priority”]=>
    NULL
    [“CharSet”]=>
    string(5) “UTF-8”
    [“ContentType”]=>
    string(10) “text/plain”
    [“Encoding”]=>
    string(4) “8bit”
    [“ErrorInfo”]=>
    string(82) “SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    [“From”]=>
    string(18) “mgray@sp8ce.design”
    [“FromName”]=>
    string(12) “Sp8ce.Design”
    [“Sender”]=>
    string(18) “mgray@sp8ce.design”
    [“ReturnPath”]=>
    string(0) “”
    [“Subject”]=>
    string(50) “WP Mail SMTP: Test mail to mgray@amorinipanini.com
    [“Body”]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    [“AltBody”]=>
    string(0) “”
    [“Ical”]=>
    string(0) “”
    [“MIMEBody”:protected]=>
    string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.

    [“MIMEHeader”:protected]=>
    string(387) “Date: Fri, 22 Jul 2016 19:23:10 +0000
    To: mgray@amorinipanini.com
    From: “Sp8ce.Design”
    Subject: WP Mail SMTP: Test mail to mgray@amorinipanini.com
    Message-ID:
    X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit


    [“mailHeader”:protected]=>
    string(0) “”
    [“WordWrap”]=>
    int(0)
    [“Mailer”]=>
    string(4) “smtp”
    [“Sendmail”]=>
    string(18) “/usr/sbin/sendmail”
    [“UseSendmailOptions”]=>
    bool(true)
    [“PluginDir”]=>
    string(0) “”
    [“ConfirmReadingTo”]=>
    string(0) “”
    [“Hostname”]=>
    string(0) “”
    [“MessageID”]=>
    string(0) “”
    [“MessageDate”]=>
    string(31) “Fri, 22 Jul 2016 19:23:10 +0000”
    [“Host”]=>
    string(14) “smtp.gmail.com”
    [“Port”]=>
    string(3) “465”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “ssl”
    [“SMTPAutoTLS”]=>
    bool(true)
    [“SMTPAuth”]=>
    bool(true)
    [“SMTPOptions”]=>
    array(0) {
    }
    [“Username”]=>
    string(18) “mgray@sp8ce.design”
    [“Password”]=>
    string(11) “Lockout2016”
    [“AuthType”]=>
    string(0) “”
    [“Realm”]=>
    string(0) “”
    [“Workstation”]=>
    string(0) “”
    [“Timeout”]=>
    int(300)
    [“SMTPDebug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“SMTPKeepAlive”]=>
    bool(false)
    [“SingleTo”]=>
    bool(false)
    [“SingleToArray”]=>
    array(0) {
    }
    [“do_verp”]=>
    bool(false)
    [“AllowEmpty”]=>
    bool(false)
    [“LE”]=>
    string(1) ”

    [“DKIM_selector”]=>
    string(0) “”
    [“DKIM_identity”]=>
    string(0) “”
    [“DKIM_passphrase”]=>
    string(0) “”
    [“DKIM_domain”]=>
    string(0) “”
    [“DKIM_private”]=>
    string(0) “”
    [“action_function”]=>
    string(0) “”
    [“XMailer”]=>
    string(0) “”
    [“smtp”:protected]=>
    object(SMTP)#2285 (13) {
    [“Version”]=>
    string(6) “5.2.14”
    [“SMTP_PORT”]=>
    int(25)
    [“CRLF”]=>
    string(2) ”

    [“do_debug”]=>
    bool(true)
    [“Debugoutput”]=>
    string(4) “echo”
    [“do_verp”]=>
    bool(false)
    [“Timeout”]=>
    int(300)
    [“Timelimit”]=>
    int(300)
    [“smtp_conn”:protected]=>
    bool(false)
    [“error”:protected]=>
    array(4) {
    [“error”]=>
    string(0) “”
    [“detail”]=>
    string(0) “”
    [“smtp_code”]=>
    string(0) “”
    [“smtp_code_ex”]=>
    string(0) “”
    }
    [“helo_rply”:protected]=>
    NULL
    [“server_caps”:protected]=>
    NULL
    [“last_reply”:protected]=>
    string(0) “”
    }
    [“to”:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(23) “mgray@amorinipanini.com”
    [1]=>
    string(0) “”
    }
    }
    [“cc”:protected]=>
    array(0) {
    }
    [“bcc”:protected]=>
    array(0) {
    }
    [“ReplyTo”:protected]=>
    array(0) {
    }
    [“all_recipients”:protected]=>
    array(1) {
    [“mgray@amorinipanini.com”]=>
    bool(true)
    }
    [“RecipientsQueue”:protected]=>
    array(0) {
    }
    [“ReplyToQueue”:protected]=>
    array(0) {
    }
    [“attachment”:protected]=>
    array(0) {
    }
    [“CustomHeader”:protected]=>
    array(0) {
    }
    [“lastMessageID”:protected]=>
    string(47) “”
    [“message_type”:protected]=>
    string(5) “plain”
    [“boundary”:protected]=>
    array(3) {
    [1]=>
    string(35) “b1_48d0ec8d64ab0c0e5e6d48ba43abf7e7”
    [2]=>
    string(35) “b2_48d0ec8d64ab0c0e5e6d48ba43abf7e7”
    [3]=>
    string(35) “b3_48d0ec8d64ab0c0e5e6d48ba43abf7e7”
    }
    [“language”:protected]=>
    array(19) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: ”
    [“execute”]=>
    string(19) “Could not execute: ”
    [“file_access”]=>
    string(23) “Could not access file: ”
    [“file_open”]=>
    string(33) “File Error: Could not open file: ”
    [“from_failed”]=>
    string(35) “The following From address failed: ”
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(17) “Invalid address: ”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: ”
    [“signing”]=>
    string(15) “Signing Error: ”
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: ”
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: ”
    [“extension_missing”]=>
    string(19) “Extension missing: ”
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_extracerts_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    [“uniqueid”:protected]=>
    string(32) “48d0ec8d64ab0c0e5e6d48ba43abf7e7”
    }
    The SMTP debugging output is shown below:
    2016-07-22 19:23:10 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array (
    )
    2016-07-22 19:23:12 SMTP ERROR: Failed to connect to server: Connection refused (111)
    2016-07-22 19:23:12 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

  41. Looks like if you have PHP > 5.5, PEAR Net::SMTP and Net::Socket have changed to use opportunistic SSL, and are stricter about validating certificates, respectively. If you use self-signed certificates on your SMTP server, this can prevent the plugin from sending mail since the STARTTLS command will fail. I have worked around the option for now as follows:

    // Set the SMTPSecure value, if set to none, leave this blank
    $phpmailer->SMTPSecure = get_option(‘smtp_ssl’) == ‘none’ ? ” : get_option(‘smtp_ssl’);

    $phpmailer->SMTPOptions = array(
    ‘ssl’ => array(
    ‘verify_peer’ => false,
    ‘verify_peer_name’ => false,
    ‘allow_self_signed’ => true
    )
    );
    // Set the other options
    $phpmailer->Host = get_option(‘smtp_host’);

    Which obviously isn’t a great thing to leave in there permanently, but perhaps the plugin could be altered to OPTIONALLY allow loose verification or skipped verification of certificates? Thanks for your work on this plugin – it’s been great so far!

Leave a Reply

Your email address will not be published. Required fields are marked *