WordPress.org

Ready to get started?Download WordPress

Forums

WP Mail SMTP
Not sending the test email (12 posts)

  1. Systemv1
    Member
    Posted 1 year ago #

    Hi,

    I can't get the test email to work.

    If anyone can help understand the error I would be very grateful:-

    Test Message Sent
    
    The result was:
    
    bool(true)
    The full debugging output is shown below:
    
    object(PHPMailer)#199 (58) {
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(5) "UTF-8"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(73) "The following From address failed: wordpress@s442965138.websitehome.co.uk"
      ["From"]=>
      string(38) "wordpress@s442965138.websitehome.co.uk"
      ["FromName"]=>
      string(17) "curveaudioWP_site"
      ["Sender"]=>
      string(0) ""
      ["Subject"]=>
      string(48) "WP Mail SMTP: Test mail to andy.friend@gmail.com"
      ["Body"]=>
      string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
      ["AltBody"]=>
      string(0) ""
      ["MIMEBody:protected"]=>
      string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
      ["MIMEHeader:protected"]=>
      string(506) "Date: Sat, 9 Feb 2013 18:04:50 +0000
    Return-Path: wordpress@s442965138.websitehome.co.uk
    To: andy.friend@gmail.com
    From: curveaudioWP_site
    Subject: WP Mail SMTP: Test mail to andy.friend@gmail.com
    Message-ID: <0b8fb3c317994366af6247da562be36a@s442965138.websitehome.co.uk>
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
    
    "
      ["SentMIMEMessage:protected"]=>
      string(579) "Date: Sat, 9 Feb 2013 18:04:50 +0000
    Return-Path: wordpress@s442965138.websitehome.co.uk
    To: andy.friend@gmail.com
    From: curveaudioWP_site
    Subject: WP Mail SMTP: Test mail to andy.friend@gmail.com
    Message-ID: <0b8fb3c317994366af6247da562be36a@s442965138.websitehome.co.uk>
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
    
    This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "smtp"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["PluginDir"]=>
      string(0) ""
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["Host"]=>
      string(9) "localhost"
      ["Port"]=>
      string(2) "25"
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(0) ""
      ["SMTPAuth"]=>
      bool(false)
      ["Username"]=>
      string(0) ""
      ["Password"]=>
      string(0) ""
      ["Timeout"]=>
      int(10)
      ["SMTPDebug"]=>
      int(2)
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["SingleToArray"]=>
      array(0) {
      }
      ["LE"]=>
      string(1) "
    "
      ["DKIM_selector"]=>
      string(9) "phpmailer"
      ["DKIM_identity"]=>
      string(0) ""
      ["DKIM_passphrase"]=>
      string(0) ""
      ["DKIM_domain"]=>
      string(0) ""
      ["DKIM_private"]=>
      string(0) ""
      ["action_function"]=>
      string(0) ""
      ["Version"]=>
      string(5) "5.2.1"
      ["XMailer"]=>
      string(0) ""
      ["smtp:protected"]=>
      object(SMTP)#200 (8) {
        ["SMTP_PORT"]=>
        int(25)
        ["CRLF"]=>
        string(2) "
    "
        ["do_debug"]=>
        int(2)
        ["do_verp"]=>
        bool(false)
        ["Version"]=>
        string(5) "5.2.1"
        ["smtp_conn:private"]=>
        bool(false)
        ["error:private"]=>
        array(1) {
          ["error"]=>
          string(37) "Called Mail() without being connected"
        }
        ["helo_rply:private"]=>
        NULL
      }
      ["to:protected"]=>
      array(1) {
        [0]=>
        array(2) {
          [0]=>
          string(21) "andy.friend@gmail.com"
          [1]=>
          string(0) ""
        }
      }
      ["cc:protected"]=>
      array(0) {
      }
      ["bcc:protected"]=>
      array(0) {
      }
      ["ReplyTo:protected"]=>
      array(0) {
      }
      ["all_recipients:protected"]=>
      array(1) {
        ["andy.friend@gmail.com"]=>
        bool(true)
      }
      ["attachment:protected"]=>
      array(0) {
      }
      ["CustomHeader:protected"]=>
      array(0) {
      }
      ["message_type:protected"]=>
      string(5) "plain"
      ["boundary:protected"]=>
      array(3) {
        [1]=>
        string(35) "b1_0b8fb3c317994366af6247da562be36a"
        [2]=>
        string(35) "b2_0b8fb3c317994366af6247da562be36a"
        [3]=>
        string(35) "b3_0b8fb3c317994366af6247da562be36a"
      }
      ["language:protected"]=>
      array(17) {
        ["provide_address"]=>
        string(54) "You must provide at least one recipient email address."
        ["mailer_not_supported"]=>
        string(25) " 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: "
        ["recipients_failed"]=>
        string(45) "SMTP Error: The following recipients failed: "
        ["data_not_accepted"]=>
        string(30) "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: "
        ["smtp_error"]=>
        string(19) "SMTP server error: "
        ["empty_message"]=>
        string(18) "Message body empty"
        ["invalid_address"]=>
        string(15) "Invalid address"
        ["variable_set"]=>
        string(30) "Cannot set or reset variable: "
      }
      ["error_count:protected"]=>
      int(1)
      ["sign_cert_file:protected"]=>
      string(0) ""
      ["sign_key_file:protected"]=>
      string(0) ""
      ["sign_key_pass:protected"]=>
      string(0) ""
      ["exceptions:protected"]=>
      bool(false)
    }
    The SMTP debugging output is shown below:
    
    SMTP -> ERROR: Failed to connect to server: Connection refused (111)
    
    The following From address failed: wordpress@s442965138.websitehome.co.uk

    http://wordpress.org/extend/plugins/wp-mail-smtp/

  2. ted_smith
    Member
    Posted 1 year ago #

    Have you specified your SMTP server properly in settings? e.g. smtp.myserver.com? When I left mine as 'localhost' I had the same problems until I changed that.

  3. Systemv1
    Member
    Posted 1 year ago #

    Thanks for the reply!

    How would I know which SMTP server to use?

  4. ted_smith
    Member
    Posted 1 year ago #

    If it's a commercial host, they will have told you in your signup e-mails or if you can't find it, look in their FAQ online or something - it will be standard to the company I expect. It will be something like smtp.myhostingprovider.com

    If it's your own server, then it's whatever SMTP server settings you created.

  5. Systemv1
    Member
    Posted 1 year ago #

    Thanks - I set to smtp.gmail.com but now saying invalid address:-

    Test Message Sent
    
    The result was:
    
    bool(true)
    The full debugging output is shown below:
    
    object(PHPMailer)#199 (58) {
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(5) "UTF-8"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(54) "You must provide at least one recipient email address."
      ["From"]=>
      string(38) "wordpress@s442965138.websitehome.co.uk"
      ["FromName"]=>
      string(17) "curveaudioWP_site"
      ["Sender"]=>
      string(0) ""
      ["Subject"]=>
      string(27) "WP Mail SMTP: Test mail to "
      ["Body"]=>
      string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
      ["AltBody"]=>
      string(0) ""
      ["MIMEBody:protected"]=>
      string(0) ""
      ["MIMEHeader:protected"]=>
      string(0) ""
      ["SentMIMEMessage:protected"]=>
      string(0) ""
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "smtp"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["PluginDir"]=>
      string(0) ""
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["Host"]=>
      string(14) "smtp.gmail.com"
      ["Port"]=>
      string(3) "465"
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(0) ""
      ["SMTPAuth"]=>
      bool(false)
      ["Username"]=>
      string(0) ""
      ["Password"]=>
      string(0) ""
      ["Timeout"]=>
      int(10)
      ["SMTPDebug"]=>
      int(2)
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["SingleToArray"]=>
      array(0) {
      }
      ["LE"]=>
      string(1) "
    "
      ["DKIM_selector"]=>
      string(9) "phpmailer"
      ["DKIM_identity"]=>
      string(0) ""
      ["DKIM_passphrase"]=>
      string(0) ""
      ["DKIM_domain"]=>
      string(0) ""
      ["DKIM_private"]=>
      string(0) ""
      ["action_function"]=>
      string(0) ""
      ["Version"]=>
      string(5) "5.2.1"
      ["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) {
      }
      ["message_type:protected"]=>
      string(0) ""
      ["boundary:protected"]=>
      array(0) {
      }
      ["language:protected"]=>
      array(17) {
        ["provide_address"]=>
        string(54) "You must provide at least one recipient email address."
        ["mailer_not_supported"]=>
        string(25) " 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: "
        ["recipients_failed"]=>
        string(45) "SMTP Error: The following recipients failed: "
        ["data_not_accepted"]=>
        string(30) "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: "
        ["smtp_error"]=>
        string(19) "SMTP server error: "
        ["empty_message"]=>
        string(18) "Message body empty"
        ["invalid_address"]=>
        string(15) "Invalid address"
        ["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(false)
    }
    The SMTP debugging output is shown below:
    
    Invalid address:
  6. ted_smith
    Member
    Posted 1 year ago #

    You've not given a test e-mail address to send a test mail to?

  7. aplarru
    Member
    Posted 1 year ago #

    Hi

    I have the same problem, I can't send the test email, the log shows the following error:

    SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (70667265)

    Any clue ?

    Thanks

  8. orenji
    Member
    Posted 1 year ago #

    I also have the same issue. I am attempting to use a Gmail address. But I get the following error.

    The SMTP debugging output is shown below:
    
    SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
    
    The following From address failed: companyname@gmail.com

    Here is the full message (password and emails were altered/hidden for obvious reasons):

    Test Message Sent
    
    The result was:
    
    bool(true)
    The full debugging output is shown below:
    
    object(PHPMailer)#108 (58) {
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(5) "UTF-8"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(63) "The following From address failed: companyname@gmail.com"
      ["From"]=>
      string(28) "companyname@gmail.com"
      ["FromName"]=>
      string(20) "Company Name"
      ["Sender"]=>
      string(0) ""
      ["Subject"]=>
      string(44) "WP Mail SMTP: Test mail to alaralp@gmail.com"
      ["Body"]=>
      string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
      ["AltBody"]=>
      string(0) ""
      ["MIMEBody":protected]=>
      string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
      ["MIMEHeader":protected]=>
      string(480) "Date: Tue, 12 Feb 2013 18:44:57 +0000
    Return-Path: companyname@gmail.com
    To: test@gmail.com
    From: Company Name
    Subject: WP Mail SMTP: Test mail to test@gmail.com
    Message-ID:
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
    
    "
      ["SentMIMEMessage":protected]=>
      string(553) "Date: Tue, 12 Feb 2013 18:44:57 +0000
    Return-Path: companyname@gmail.com
    To: test@gmail.com
    From: Company Name
    Subject: WP Mail SMTP: Test mail to test@gmail.com
    Message-ID:
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
    
    This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "smtp"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["PluginDir"]=>
      string(0) ""
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["Host"]=>
      string(14) "smtp.gmail.com"
      ["Port"]=>
      string(3) "465"
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(3) "ssl"
      ["SMTPAuth"]=>
      bool(true)
      ["Username"]=>
      string(28) "companyname@gmail.com"
      ["Password"]=>
      string(12) "***********"
      ["Timeout"]=>
      int(10)
      ["SMTPDebug"]=>
      int(2)
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["SingleToArray"]=>
      array(0) {
      }
      ["LE"]=>
      string(1) "
    "
      ["DKIM_selector"]=>
      string(9) "phpmailer"
      ["DKIM_identity"]=>
      string(0) ""
      ["DKIM_passphrase"]=>
      string(0) ""
      ["DKIM_domain"]=>
      string(0) ""
      ["DKIM_private"]=>
      string(0) ""
      ["action_function"]=>
      string(0) ""
      ["Version"]=>
      string(5) "5.2.1"
      ["XMailer"]=>
      string(0) ""
      ["smtp":protected]=>
      object(SMTP)#109 (8) {
        ["SMTP_PORT"]=>
        int(25)
        ["CRLF"]=>
        string(2) "
    "
        ["do_debug"]=>
        int(2)
        ["do_verp"]=>
        bool(false)
        ["Version"]=>
        string(5) "5.2.1"
        ["smtp_conn":"SMTP":private]=>
        bool(false)
        ["error":"SMTP":private]=>
        array(1) {
          ["error"]=>
          string(37) "Called Mail() without being connected"
        }
        ["helo_rply":"SMTP":private]=>
        NULL
      }
      ["to":protected]=>
      array(1) {
        [0]=>
        array(2) {
          [0]=>
          string(17) "alaralp@gmail.com"
          [1]=>
          string(0) ""
        }
      }
      ["cc":protected]=>
      array(0) {
      }
      ["bcc":protected]=>
      array(0) {
      }
      ["ReplyTo":protected]=>
      array(0) {
      }
      ["all_recipients":protected]=>
      array(1) {
        ["alaralp@gmail.com"]=>
        bool(true)
      }
      ["attachment":protected]=>
      array(0) {
      }
      ["CustomHeader":protected]=>
      array(0) {
      }
      ["message_type":protected]=>
      string(5) "plain"
      ["boundary":protected]=>
      array(3) {
        [1]=>
        string(35) "b1_d42b57bd8b43057f3ecadb05bb3dec20"
        [2]=>
        string(35) "b2_d42b57bd8b43057f3ecadb05bb3dec20"
        [3]=>
        string(35) "b3_d42b57bd8b43057f3ecadb05bb3dec20"
      }
      ["language":protected]=>
      array(17) {
        ["provide_address"]=>
        string(54) "You must provide at least one recipient email address."
        ["mailer_not_supported"]=>
        string(25) " 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: "
        ["recipients_failed"]=>
        string(45) "SMTP Error: The following recipients failed: "
        ["data_not_accepted"]=>
        string(30) "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: "
        ["smtp_error"]=>
        string(19) "SMTP server error: "
        ["empty_message"]=>
        string(18) "Message body empty"
        ["invalid_address"]=>
        string(15) "Invalid address"
        ["variable_set"]=>
        string(30) "Cannot set or reset variable: "
      }
      ["error_count":protected]=>
      int(1)
      ["sign_cert_file":protected]=>
      string(0) ""
      ["sign_key_file":protected]=>
      string(0) ""
      ["sign_key_pass":protected]=>
      string(0) ""
      ["exceptions":protected]=>
      bool(false)
    }
    The SMTP debugging output is shown below:
    
    SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
    
    The following From address failed: companyname@gmail.com
  9. Pubchum
    Member
    Posted 1 year ago #

    I could not get GMAIL to work either. I tried every possible combination, even the suggestions from the FAQ and different GMAIL accounts.

    Finally I used my local host's SMTP (lunarpages). I created an email account and the output description had what seemed like all the necessary info. I used it and it worked. I guess GMAIL really doesn't like SPAM.

  10. katandmouse
    Member
    Posted 1 year ago #

    I can't get the test to work either.

  11. phillcoxon
    Member
    Posted 11 months ago #

    I've had the same problem with gmail - no matter what settings I use I always get an authentication error.

    So far working great using Amazon SES though.

  12. andrew_wilkes
    Member
    Posted 11 months ago #

    Gmail requires an SSL connection. If your server doesn't support SSL, then it cannot connect to Gmail.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.