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

  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.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>