WP Mail SMTP v0.7

I released version 0.7 of the WP Mail SMTP plugin a couple of days ago. To make support a little more manageable I’m going to switch the comments from the plugin page to a post for each version. So please ask in the comments here for all support questions related to version 0.7. If you’re using a previous version, please upgrade and then post your questions here! :)

Please be sure to look back at previous questions before posting here. If you’re having a problem where mails are not being sent, or anything of that nature, please post your debugging output. Send a test mail, then copy / paste the response into the comments. Remember to delete any passwords. I’d recommend you replace any @ symbols with something else (at), [at], #at#, etc.

33 Responses to “WP Mail SMTP v0.7”


  1. 1 rslater

    ???? plugin works great!!! Can you get this plugin to work for bbpress the latest version? Would be seriously helpful!!

  2. 2 Callum

    I haven’t looked at bbPress for a while now, so no idea how it relates to this plugin I’m afraid. I might get round to that at some point in the future, but it’s not a huge priority for me.

  3. 3 Gustavo Leig

    Great plugin, great work.

    I’ve installed it, tested inside the admin panel, but all my email continues to go through wordpress. How can I debug this? Just dont get what I did wrong.

  4. 4 Callum

    @Gustavo Leig: I’m not sure what you mean “my email continues to go through wordpress”. Can you explain that in a little more detail? What do you expect to happen? What is currently happening?

  5. 5 Gustavo Leig

    Thanks for the reply,

    the email is being sent like the smtp wasnt installed, through
    wordpress send mail. I tested the contact form.
    I dont know what is happening but I cant get any notification for new
    comments, same problem I was having before installing the plugin.

    Gus

  6. 6 Callum

    @Gustavo Leig: Is your contact form provided by a plugin? There’s no contact form in WordPress core as far as I know. So your plugin may not be configured to send mail via the wp_mail() function, in which case, the WP Mail SMTP plugin will have no effect on your contact form.

    You say you’re not receiving “notification for new comments”. Is your problem related to this bug?

    Try sending a test mail through the plugin, does that work?

  7. 7 Gustavo Leig

    well, it seems to work now, the only thing I changed is that I disabled the plugin AJAX Comments WPMUified. What plugin do you use to this ajax comment form?

    and thank you for replying.

  8. 8 Callum

    @Gustavo Leig: Glad it’s working. :)

    I use the K2 theme which includes ajax commenting.

  9. 9 yoda

    I was wondering where I can specify the port to use for smtp in your smtp
    plugin. Bluehost.com requires port 26, not port 25.

    Thanks

  10. 10 Jerod

    Hey Callum, I have included the Test Email output to a Yahoo address as well as a Hotmail address like you requested. I’m sure it’s probably something minute I’m just looking over.

    HOTMAIL:
    Test Message Sent

    The result was:

    bool(true)

    The SMTP debugging output is shown below:

    SMTP -> FROM SERVER:
    220 server1.example.com ESMTP Postfix (Ubuntu)
    SMTP -> FROM SERVER:
    250-server1.example.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    SMTP -> FROM SERVER:
    250 2.1.0 Ok
    SMTP -> FROM SERVER:
    250 2.1.5 Ok
    SMTP -> FROM SERVER:
    354 End data with .
    SMTP -> FROM SERVER:
    250 2.0.0 Ok: queued as DB51B4CA37
    SMTP -> FROM SERVER:
    221 2.0.0 Bye

    YAHOO:
    Test Message Sent

    The result was:

    bool(true)

    The SMTP debugging output is shown below:

    SMTP -> FROM SERVER:
    220 server1.example.com ESMTP Postfix (Ubuntu)
    SMTP -> FROM SERVER:
    250-server1.example.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    SMTP -> FROM SERVER:
    250 2.1.0 Ok
    SMTP -> FROM SERVER:
    250 2.1.5 Ok
    SMTP -> FROM SERVER:
    354 End data with .
    SMTP -> FROM SERVER:
    250 2.0.0 Ok: queued as B6A7D4CA37
    SMTP -> FROM SERVER:
    221 2.0.0 Bye

    They both appear to go through, but I check both of these accounts fairly regularly and have even made sure to check all junk email folders, but still no verification email.

  11. 11 Callum

    @yoda: Short answer, I’m not sure if you can. Try changing the port to “localhost:26″ and see if that works. If not, then it’s not currently an option. If that doesn’t work, post back and I’ll see about adding it as an option.

  12. 12 Callum

    @Jerod: You said:

    …but still no verification email.

    Do you mean that you’re not receiving the test email from the plugin? Or do you mean that you’re not receiving some other email from WordPress?

    Have you specified a from email address? Are you receiving bounce emails to that address? I know that Yahoo and Hotmail can be a bit funny about some IPs, they simply reject the mail outright if they don’t like your IP. It could be something related to that.

  13. 13 yoda

    thanks. but where do I do this change? I see the mail() php file, but that’s if we use php_mail right? which file do I edit for you change?

    Thanks.

  14. 14 Callum

    @yoda: No changes to the file are required. I’m suggesting changing the host setting in the options page to “hostname:26″. If your host is localhost, use “localhost:26″.

  15. 15 Eric

    After installing plug-in, I finally started getting comment notifications and notifications of new subscribers to my WordPress admin account; however, any e-mail addresses outside of my blog domain do not receive e-mails. I’ve tried both the test feature in the plug-in and registering on my blog with an email address with a domain name other than my blog, and do not receive any e-mails. Any help is appreciated.

  16. 16 Callum

    @Eric: Please post your debugging output so I can advise further.

  17. 17 tornth

    Hi! This must be the most stupid question you have ever seen :-)
    I installed your plugin in Wordpress 2.5. I got the HTML page with all the required form fields. But how can i integrate the form with your plugin and have the email sent!? Could you help?

  18. 18 Callum

    @tornth: I don’t understand your question. Do you have another plugin which you would like to send emails through my plugin instead of php’s mail() function? If that is the case, the question is prominently answered here.

    Or, if you meant something different, please explain your problem in more detail and I’ll try to help.

  19. 19 tornth

    I would like to have a contact form in my website, so that my customer could send me message directly from my web; http://www.jpjtrade.co.th/contact.htm . I have found your plugin in Wordpress and think that i could use your plugin as the easiest solution (for person who knows nothing about PHP mail) to add email capabilities to my site.

    Thank you for your reply

  20. 20 Callum

    @tornth: I think you’ve misunderstood the purpose of this plugin. It doesn’t add a contact form, it changes the way that WordPress sends emails. If you want a contact form, I’d suggest searching on WordPress.org.

  21. 21 maurizio

    maybe i’m dumb!
    i have installed the plugin, i tested with a test email and it works good, now, how do i contact the users? i can’t find any link in the admin panel…

  22. 22 Callum

    @maurizio: The plugin doesn’t add any feature to allow you to email users. It allows you to send email by SMTP instead of PHP’s mail() function. If you don’t know what that means, you most likely don’t need the plugin. :)

  23. 23 yugz

    hi, ihave installed wp-mail-smtp in my website
    the test mail is working though smtp with anonymous login (no need to set login/paswd).
    BUT
    i am using subscribe2 plugin.
    i checked and this one is using wp_mzil function to send emails
    bUT
    it isnt’ working even with wp-mail-smtp activated.

    here are the calls to wp_mail in the subscibe2 plugin
    // actually send mail
    if ( (defined(’BCCLIMIT’)) && (BCCLIMIT > 0) && (isset($batch)) ) {
    foreach ($batch as $bcc) {
    $newheaders = $headers . “$bcc\r\n”;
    @wp_mail($this->myemail, $subject, $mailtext, $newheaders);
    }
    } else {
    @wp_mail($this->myemail, $subject, $mailtext, $headers);
    }
    ….
    return @wp_mail($this->email, $subject, $body, $mailheaders);

  24. 24 Callum

    @yugz: When you say “it’s not working with subscribe2″, what do you mean? Do you mean that emails are not being sent?

    Have you tried sending the test email to a yahoo, hotmail, etc address? Any email address that is not hosted on the same server would be fine. Perhaps your SMTP server requires authentication to send to addresses which are not on your domain.

  25. 25 Frank

    Hello,

    I’m having a problem getting this plugin to work. It installed fine so far, but when I try to save my Options (using the “Update Options” button) I only get the following message:
    Are you sure you want to do this?
    Please try again.

    “Send Test” doesn’t work, either.

    I’m running WPMU 1.5.1, if that matters.

    Regards,
    Frank

  26. 26 Callum

    @Frank: The plugin options won’t work in WPMU because it handles options in a different way. I haven’t updated the plugin to be cross compatible.

    I’m assuming you want the plugin to run across the whole site, for all blogs. Is that correct? What I’ll probably do is add the ability to set options in wp-config.php. Then you could put the plugin in the mu-plugins folder and it will work for all WPMU blogs.

  27. 27 Frank

    @Callum: You’re right, I’d like the plugin to work for all blogs. I’m using WPMU at Bochum Ruhr-University for e-learning purposes and it’d be great to have it fully functional :-)
    Thanks in advance,
    Frank

  28. 28 asrai

    Hi…uhm it was working a while ago but now I’m not receiving any email from my WP.

    The SMTP debugging output is shown below:

    SMTP -> ERROR: Failed to connect to server: Connection refused (111)

    I tried manually sending messages to my email address and it works..so I think its something with WP but I don’t know what exactly.

    could you help me please..thank you ^^

  29. 29 Callum

    @asrai: It sounds like there’s a problem with the server you’re trying to send mail through. Are you sending mail via “localhost”? Have you tried connecting to the server on port 25 to see if it accepts mail?

    If that’s a bit too techy, I’d suggest contacting your host and asking them to check that everything is working ok with your mail. Tell them that WordPress is trying to send mail on port 25 and getting the connection refused error.

  30. 30 Eric

    Hi Callum,
    I have tried your plug-in and would really like to use it, however, it doesn’t seem to work for me. I have read all the post and nothing seems to work. The following is the error info after trying to use the SMTP function. When using the PHP mail() function, I get “bool(false)”. What should I do?
    My site is hosted with GoDaddy using Windows Server.

    The result was:

    bool(false)
    The full debugging output is shown below:

    object(PHPMailer)#3 (39) {
    ["Priority"]=>
    int(3)
    ["CharSet"]=>
    string(5) “UTF-8″
    ["ContentType"]=>
    string(10) “text/plain”
    ["Encoding"]=>
    string(4) “8bit”
    ["ErrorInfo"]=>
    string(44) “Language string failed to load: connect_host”
    ["From"]=>
    string(24) “trish@kaunitzcentral.com”
    ["FromName"]=>
    string(13) “Trish’s Place”
    ["Sender"]=>
    string(0) “”
    ["Subject"]=>
    string(49) “WP Mail SMTP: Test mail to kaunitze@gilmerisd.org
    ["Body"]=>
    string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
    ["AltBody"]=>
    string(0) “”
    ["WordWrap"]=>
    int(0)
    ["Mailer"]=>
    string(4) “smtp”
    ["Sendmail"]=>
    string(18) “/usr/sbin/sendmail”
    ["PluginDir"]=>
    string(0) “”
    ["Version"]=>
    string(4) “1.73″
    ["ConfirmReadingTo"]=>
    string(0) “”
    ["Hostname"]=>
    string(0) “”
    ["Host"]=>
    string(24) “smtpout.secureserver.net”
    ["Port"]=>
    int(25)
    ["Helo"]=>
    string(0) “”
    ["SMTPAuth"]=>
    bool(true)
    ["Username"]=>
    string(24) “trish@kaunitzcentral.com”
    ["Password"]=>
    string(7) “*******”
    ["Timeout"]=>
    int(10)
    ["SMTPDebug"]=>
    int(2)
    ["SMTPKeepAlive"]=>
    bool(false)
    ["smtp"]=>
    object(SMTP)#103 (6) {
    ["SMTP_PORT"]=>
    int(25)
    ["CRLF"]=>
    string(2) ”

    ["do_debug"]=>
    int(2)
    ["smtp_conn"]=>
    bool(false)
    ["error"]=>
    array(3) {
    ["error"]=>
    string(27) “Failed to connect to server”
    ["errno"]=>
    int(10060)
    ["errstr"]=>
    string(185) “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

    }
    ["helo_rply"]=>
    NULL
    }
    ["to"]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(22) “kaunitze@gilmerisd.org”
    [1]=>
    string(0) “”
    }
    }
    ["cc"]=>
    array(0) {
    }
    ["bcc"]=>
    array(0) {
    }
    ["ReplyTo"]=>
    array(0) {
    }
    ["attachment"]=>
    array(0) {
    }
    ["CustomHeader"]=>
    array(0) {
    }
    ["message_type"]=>
    string(5) “plain”
    ["boundary"]=>
    array(2) {
    [1]=>
    string(35) “b1_25d3d55176dab3cd94694abae51a5797″
    [2]=>
    string(35) “b2_25d3d55176dab3cd94694abae51a5797″
    }
    ["language"]=>
    array(0) {
    }
    ["error_count"]=>
    int(2)
    ["LE"]=>
    string(1) ”

    }
    The SMTP debugging output is shown below:

    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)

    Thanks for all you do and for all your help!

  31. 31 Callum

    @Eric: It looks like your hosting account cannot connect to the server. Have you tried sending a test mail with the SMTP server set to “localhost”? Does that work?

    I’d recommend asking GoDaddy if your SMTP server is correct. It looks like the script cannot connect to the server. Let me know if you don’t get any further and we’ll see what we can do. :)

  32. 32 Eric

    I used “localhost” and it seemed to connect, but still no go. Here is the result…

    The result was:

    bool(false)

    SMTP -> FROM SERVER:
    220 p3swh203.gdhosting.gdg Microsoft ESMTP MAIL Service, Version: 7.0.6001.18000 ready at Fri, 11 Jul 2008 06:52:14 -0700
    SMTP -> FROM SERVER:
    250-p3swh203.gdhosting.gdg Hello [127.0.0.1]
    250-TURN
    250-SIZE 2097152
    250-ETRN
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-8bitmime
    250-BINARYMIME
    250-CHUNKING
    250-VRFY
    250 OK
    SMTP -> FROM SERVER:
    250 2.1.0 trish@kaunitzcentral.com….Sender OK
    SMTP -> FROM SERVER:
    550 5.7.1 Unable to relay for eric@kaunitzcentral.com
    SMTP -> ERROR: RCPT not accepted from server: 550 5.7.1 Unable to relay for eric@kaunitzcentral.com

    SMTP -> FROM SERVER:
    250 2.0.0 Resetting

    Thanks, Eric

  33. 33 Callum

    @Eric: Sounds like a problem with your server I’m afraid. It should accept and relay any mail from localhost.

    You’re using GoDaddy for hosting right? I’d suggest contacting them and asking what SMTP server your web scripts should send mail to. If it’s localhost, send them the error message. If it’s not, try that server and see what you get. If it’s the server you’ve already tried, again, send them the error.

    Unfortunately the fault lies with them. The plugin seems to be working ok.

Leave a Reply