WordPress.org

Ready to get started?Download WordPress

Forums

Sending emails does not work (18 posts)

  1. mendocinotim
    Member
    Posted 4 years ago #

    When someone registers on my site it does not send out the registration email - hence, no one can register.

    I have installed the WP-Mail-SMTP plugin and enabled it, and have it set to "Use the PHP mail() function to send emails." - and then, when I told it to send a test email to me, it said it was successful; however I never get the email.

    NOTE: My spam filter is switched off.

    I also tried it with "Send all WordPress emails via SMTP.", and that gave the following error..

    Test Message Sent
    
    The result was:
    
    bool(false)
    The full debugging output is shown below:
    
    object(PHPMailer)#135 (45) {
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(5) "UTF-8"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(43) "SMTP Error: Could not connect to SMTP host."
      ["From"]=>
      string(19) "tim@Swing-Thing.com"
      ["FromName"]=>
      string(25) "Timothy Hall (Fred's son)"
      ["Sender"]=>
      string(0) ""
      ["Subject"]=>
      string(46) "WP Mail SMTP: Test mail to tim@Swing-Thing.com"
      ["Body"]=>
      string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
      ["AltBody"]=>
      string(0) ""
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "smtp"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["PluginDir"]=>
      string(0) ""
      ["Version"]=>
      string(5) "2.0.4"
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["Host"]=>
      string(20) "mail.swing-thing.com"
      ["Port"]=>
      string(2) "25"
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(0) ""
      ["SMTPAuth"]=>
      bool(true)
      ["Username"]=>
      string(19) "tim@swing-thing.com"
      ["Password"]=>
      string(8) "free4air"
      ["Timeout"]=>
      int(10)
      ["SMTPDebug"]=>
      int(2)
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["smtp"]=>
      object(SMTP)#136 (7) {
        ["SMTP_PORT"]=>
        int(25)
        ["CRLF"]=>
        string(2) "
    "
        ["do_debug"]=>
        int(2)
        ["do_verp"]=>
        bool(false)
        ["smtp_conn"]=>
        bool(false)
        ["error"]=>
        array(3) {
          ["error"]=>
          string(27) "Failed to connect to server"
          ["errno"]=>
          int(0)
          ["errstr"]=>
          string(58) "php_network_getaddresses: getaddrinfo failed: System error"
        }
        ["helo_rply"]=>
        NULL
      }
      ["to"]=>
      array(1) {
        [0]=>
        array(2) {
          [0]=>
          string(19) "tim@Swing-Thing.com"
          [1]=>
          string(0) ""
        }
      }
      ["cc"]=>
      array(0) {
      }
      ["bcc"]=>
      array(0) {
      }
      ["ReplyTo"]=>
      array(0) {
      }
      ["attachment"]=>
      array(0) {
      }
      ["CustomHeader"]=>
      array(0) {
      }
      ["message_type"]=>
      string(5) "plain"
      ["boundary"]=>
      array(2) {
        [1]=>
        string(35) "b1_c99db40d7a65448a8195956642b37f07"
        [2]=>
        string(35) "b2_c99db40d7a65448a8195956642b37f07"
      }
      ["language"]=>
      array(13) {
        ["mailer_not_supported"]=>
        string(25) " mailer is not supported."
        ["provide_address"]=>
        string(55) "You must provide at least one  mailer is not supported."
        ["execute"]=>
        string(19) "Could not execute: "
        ["instantiate"]=>
        string(36) "Could not instantiate mail function."
        ["authenticate"]=>
        string(35) "SMTP Error: Could not authenticate."
        ["from_failed"]=>
        string(35) "The following From address failed: "
        ["data_not_accepted"]=>
        string(30) "SMTP Error: Data not accepted."
        ["recipients_failed"]=>
        string(56) "SMTP Error: The following SMTP Error: Data not accepted."
        ["connect_host"]=>
        string(43) "SMTP Error: Could not connect to SMTP host."
        ["file_access"]=>
        string(23) "Could not access file: "
        ["file_open"]=>
        string(33) "File Error: Could not open file: "
        ["encoding"]=>
        string(18) "Unknown encoding: "
        ["signing"]=>
        string(15) "Signing Error: "
      }
      ["error_count"]=>
      int(1)
      ["LE"]=>
      string(1) "
    "
      ["sign_cert_file"]=>
      string(0) ""
      ["sign_key_file"]=>
      string(0) ""
      ["sign_key_pass"]=>
      string(0) ""
    }
    The SMTP debugging output is shown below:
    
    SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: System error (0)

    My SMTP settings have been double checked and are correct, along with the appropriate username and password.

    I am stumped.

    Please, anyone - what am I doing wrong here?

    Thanks.

  2. bamajr
    Member
    Posted 4 years ago #

    mendocinotim

    Your email password is in plain text, in the error log you posted. You may want to consider changing it.

    Also, are you sure "mail.swing-thing.com" is your SMTP server, rather than just swing-thing.com?

    In addition, are you sure your email address is your username, and not just the first part of your email address?

  3. ddsuresh
    Member
    Posted 4 years ago #

    mendocinotim

    I was also facing same problem.
    Then i found the problem
    I had given the hostname as mail.largeresource.net, but you need to give it as "localhost", then might work for you.

  4. sweetfunny49
    Member
    Posted 4 years ago #

    It defenetly stoped working after upgrading to wordpress 3.0

    I tested this on a blog, that still runs on WP 2.9.2 and it works

    So we need an update of this for WP 3.0

  5. Callum Macdonald
    Member
    Posted 4 years ago #

    @sweetfunny49. What, specifically, stopped working after upgrading to 3.0?

  6. sweetfunny49
    Member
    Posted 4 years ago #

    The feature of using for example a yahoo email adress to send emails.

    Ok here are the exact examples.

    On WordPress 2.9.2 it works and I get:

    The result was:
    
    bool(true)
    
    The SMTP debugging output is shown below:
    
    SMTP -> FROM SERVER:
    220 smtp103.plus.mail.re1.yahoo.com ESMTP
    SMTP -> FROM SERVER:
    250-smtpxxx.plus.mail.rex.yahoo.com
    250-AUTH LOGIN PLAIN XYMCOOKIE
    250-PIPELINING
    250 8BITMIME
    SMTP -> FROM SERVER:
    250 OK , completed
    SMTP -> FROM SERVER:
    250 OK , completed
    SMTP -> FROM SERVER:
    354 Start Mail. End with CRLF.CRLF
    SMTP -> FROM SERVER:
    250 OK , completed
    SMTP -> FROM SERVER:
    221 Service Closing transmission

    Now I use WordPress 3.0 with EXACT the same Setting in the plugin ( I checked at least 10 times :)) and I get:

    The result was:
    
    bool(false)
    
    The full debugging output is shown below:
    
    object(PHPMailer)#25 (45) {
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(5) "UTF-8"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(43) "SMTP Error: Could not connect to SMTP host."
      ["From"]=>
      string(19) "XXXXXXXXXXXXXXXXXXXXXXXXXXX@yahoo.com"
      ["FromName"]=>
      string(6) "jasmin"
      ["Sender"]=>
      string(0) ""
      ["Subject"]=>
      string(40) "WP Mail SMTP: Test mail to XXXXXXXXXXXXXXXXXXXXXXXXXXX"
      ["Body"]=>
      string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
      ["AltBody"]=>
      string(0) ""
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "smtp"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["PluginDir"]=>
      string(0) ""
      ["Version"]=>
      string(5) "2.0.4"
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["Host"]=>
      string(19) "smtp.mail.yahoo.com"
      ["Port"]=>
      string(2) "25"
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(0) ""
      ["SMTPAuth"]=>
      bool(true)
      ["Username"]=>
      string(19) "XXXXXXXXXXXXXXXXXXXXXXXXXXX@yahoo.com"
      ["Password"]=>
      string(8) "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
      ["Timeout"]=>
      int(10)
      ["SMTPDebug"]=>
      int(2)
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["smtp"]=>
      object(SMTP)#26 (7) {
        ["SMTP_PORT"]=>
        int(25)
        ["CRLF"]=>
        string(2) "
    "
        ["do_debug"]=>
        int(2)
        ["do_verp"]=>
        bool(false)
        ["smtp_conn"]=>
        bool(false)
        ["error"]=>
        array(3) {
          ["error"]=>
          string(27) "Failed to connect to server"
          ["errno"]=>
          int(111)
          ["errstr"]=>
          string(18) "Connection refused"
        }
        ["helo_rply"]=>
        NULL
      }
      ["to"]=>
      array(1) {
        [0]=>
        array(2) {
          [0]=>
          string(13) "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
          [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) "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
        [2]=>
        string(35) "XXXXXXXXXXXXXXXXXXXXXXXXXXX
      }
      ["language"]=>
      array(13) {
        ["mailer_not_supported"]=>
        string(25) " mailer is not supported."
        ["provide_address"]=>
        string(55) "You must provide at least one  mailer is not supported."
        ["execute"]=>
        string(19) "Could not execute: "
        ["instantiate"]=>
        string(36) "Could not instantiate mail function."
        ["authenticate"]=>
        string(35) "SMTP Error: Could not authenticate."
        ["from_failed"]=>
        string(35) "The following From address failed: "
        ["data_not_accepted"]=>
        string(30) "SMTP Error: Data not accepted."
        ["recipients_failed"]=>
        string(56) "SMTP Error: The following SMTP Error: Data not accepted."
        ["connect_host"]=>
        string(43) "SMTP Error: Could not connect to SMTP host."
        ["file_access"]=>
        string(23) "Could not access file: "
        ["file_open"]=>
        string(33) "File Error: Could not open file: "
        ["encoding"]=>
        string(18) "Unknown encoding: "
        ["signing"]=>
        string(15) "Signing Error: "
      }
      ["error_count"]=>
      int(1)
      ["LE"]=>
      string(1) "
    "
      ["sign_cert_file"]=>
      string(0) ""
      ["sign_key_file"]=>
      string(0) ""
      ["sign_key_pass"]=>
      string(0) ""
    }

    (I changed my emails and passwords with XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.)

  7. sweetfunny49
    Member
    Posted 4 years ago #

    Ok maybe this helps to find the error. I tried a lot of plugins now that use SMTP to send the emails and they all stoped working after upgrading to WP 3.0

    So I guess there has to be some big change, that makes all the plugins stop working.

  8. sweetfunny49
    Member
    Posted 4 years ago #

    Ok again some news on that :)

    I think now it is not the WP 3.0. The problem was my blog with wp 2.9.2 is on different hosting then the blog with wp 3.0

    Now I tried the hosting, where wp 2.9.2 worked and upgraded to wp 3.0 and there the plugin works. So it seems to be an issue of my hosting.

    What can be different on my two hosting accounts, that makes the plugin work or fail?

  9. Callum Macdonald
    Member
    Posted 4 years ago #

    @sweetfunny49: See the plugin support page, you have the most common error message that people get.

  10. David_ma
    Member
    Posted 4 years ago #

    WP 3.0.
    I get this error on activating the plugin:
    The plugin generated 173 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

  11. Callum Macdonald
    Member
    Posted 4 years ago #

    @David_ma: How very strange. I just deactivated and re-activated and got the same error, but 194 characters. I don't know what gives rise to that error, there's nothing in the code that should output during activation. The plugin will still work as expected I believe, I recommend you ignore the error.

    Disclosure: I'm the developer of WP Mail SMTP.

  12. Subhramani
    Member
    Posted 4 years ago #

    I already have the exact same settings as whats mentioned on the plugin website. I still get the same error that its not able to connect to the SMTP server. Strange.
    Any fix for this yet?

  13. Callum Macdonald
    Member
    Posted 4 years ago #

    @subhramani: I don't understand what problem you're having or what you're trying to achieve. Can you try explaining in more detail? Maybe on a new thread?

  14. Subhramani
    Member
    Posted 4 years ago #

    After I upgraded to WP3, mails doesnt seem to be working at all. I get the exact same error message as mentioned above in the first post when I send a test mail to myself.

    When I create a new user ID, the mail with the new password doesnt come to me as well. The plugin was working absolutely fine until I upgraded to WP3.

  15. Callum Macdonald
    Member
    Posted 4 years ago #

    I'm not sure what to suggest. My site is running WP 3.0 and the plugin runs fine. I haven't had any valid bug reports since 3.0 was released.

  16. Alyen
    Member
    Posted 4 years ago #

    It defenetly stoped working after upgrading to wordpress 3.0.1

    I tested this on a blog, that still runs on WP 2.9.2 and it works

    So we need an update of this for WP 3.0.1

  17. Callum Macdonald
    Member
    Posted 4 years ago #

    @Alyen: You're simply wrong. The plugin works fine under 3.0.1. If you have a specific error please feel free to post it. I recommend using a new thread, this thread has already gone way off topic.

    Disclosure: I'm the plugin developer.

  18. Alyen
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic