Wordpress/PHP SMTP mail on Win 2008 R2 using GoDaddy...

cerksees
cerksees used Ask the Experts™
on
I have Wordpress 3.1.2 running on Windows Server 2008 R2.  Everything seems to work fine excpet I cannot get SMTP mail (or PHP's mail() function) to work.

I am using the latest version of the WP-SMTP-Mail Plugin.

My PHP.ini mail settings are....

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = somebody@somewhere.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

Open in new window


My WP-SMTP-MAIL settings are ....

 wp smtp mail
And I get back...

Test Message Sent

The result was:

bool(false)

The full debugging output is shown below:

object(PHPMailer)#110 (44) {
  ["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(30) "relay@****************.com"
  ["FromName"]=>
  string(22) "************************"
  ["Sender"]=>
  string(30) "relay@**********.com"
  ["Subject"]=>
  string(50) "WP Mail SMTP: Test mail to support@**************.net"
  ["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(24) "smtpout.secureserver.net"
  ["Port"]=>
  string(3) "465"
  ["Helo"]=>
  string(0) ""
  ["SMTPSecure"]=>
  string(3) "ssl"
  ["SMTPAuth"]=>
  bool(true)
  ["Username"]=>
  string(30) "relay@************.com"
  ["Password"]=>
  string(6) "*******"
  ["Timeout"]=>
  int(10)
  ["SMTPDebug"]=>
  int(2)
  ["SMTPKeepAlive"]=>
  bool(false)
  ["SingleTo"]=>
  bool(false)
  ["smtp"]=>
  object(SMTP)#122 (7) {
    ["SMTP_PORT"]=>
    int(25)
    ["CRLF"]=>
    string(2) "
"
    ["do_debug"]=>
    int(2)
    ["do_verp"]=>
    bool(false)
    ["smtp_conn"]=>
    int(0)
    ["error"]=>
    array(1) {
      ["error"]=>
      string(38) "Called Reset() without being connected"
    }
    ["helo_rply"]=>
    NULL
  }
  ["to"]=>
  array(1) {
    [0]=>
    array(2) {
      [0]=>
      string(23) "support@*************.net"
      [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_b128ba4f79872dac2dff1edfce995246"
    [2]=>
    string(35) "b2_b128ba4f79872dac2dff1edfce995246"
  }
  ["error_count"]=>
  int(2)
  ["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 -> FROM SERVER:
SMTP -> NOTICE:
EOF caught while checking if connectedSMTP -> ERROR: AUTH not accepted from server: 

Open in new window



I have also tried setting up PHP mail in WP-SMTP-MAIL using the following settings....

 php mail settings
And I get the following output....

Test Message Sent

The result was:

bool(false)

The full debugging output is shown below:

object(PHPMailer)#110 (44) {
  ["Priority"]=>
  int(3)
  ["CharSet"]=>
  string(5) "UTF-8"
  ["ContentType"]=>
  string(10) "text/plain"
  ["Encoding"]=>
  string(4) "8bit"
  ["ErrorInfo"]=>
  string(36) "Could not instantiate mail function."
  ["From"]=>
  string(30) "relay@***.com"
  ["FromName"]=>
  string(22) "***********************"
  ["Sender"]=>
  string(0) ""
  ["Subject"]=>
  string(50) "WP Mail SMTP: Test mail to support@***.net"
  ["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) "mail"
  ["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(9) "localhost"
  ["Port"]=>
  int(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)
  ["smtp"]=>
  NULL
  ["to"]=>
  array(1) {
    [0]=>
    array(2) {
      [0]=>
      string(23) "support@***.net"
      [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_bc67ff949a4de61932d4a12cac1b4c2a"
    [2]=>
    string(35) "b2_bc67ff949a4de61932d4a12cac1b4c2a"
  }
  ["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:

Open in new window



I even messed around with this....

 iis smtp
But, there is no SMTP server installed (the feature has not been added) and now I cannot seem to be able to remove these settings from IIS 7.  Blanking them out does no good - they just reappear.

I have wasted 4 hours (including time on the Phone with GoDaddy) and am completely lost at this point.

The email addresses (remarked out here with aterisks) are all correct.  The password for the relay email address is also correct.  I have used it to log into GoDaddy's webmail with no problems.

I even used the relay email info to set up the account in Outlook 2010 and it worked flawlessly.

So...how do I get mail (PHP's mail() function OR SMTP email) to work for my contact forms in Wordpress 3.1.2 on Windows 2008 R2?


How do I
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
It got cut off for some reason.....

How do I get email working in Wordpress 3.1.2 on Windows Server 2008 R2?

Author

Commented:
Got to get some sleep...be back later.....
Commented:
There are some instructions here

http://jeffrohrer.com/2011/01/31/wordpress-contact-form-7-on-windows-server-host/

 I notice that you have port 80 for your smtp server, that is typically an http port... 25 is usually the smtp port. Here is also someone who posted the settings that worked for him in WP-SMTP-MAIL

http://angstrey.com/index.php/2009/04/22/how-to-send-e-mail-with-wordpress-from-godaddy-windows-hosting/

Author

Commented:
Port 80 was for using GoDaddy's relay email server (relay-hosting.secureserver.net).  Those are the settings they gave me.

Using their SMTP normally (smtpout.secureserver.net) requires SSL over port 465.

Both methods require user authentication.

I tried the instructions at the link you listed and still no success.  At the bottom of those instructions the author says that they work for some people and not for others.  I guess I am the latter.

Author

Commented:
This is a Windows Server issue.  I cannot telnet to an SMTP server.  I even loaded Thunderbird on the server and it cannot connect to the same email address that I can connect to with no issues.

I will restate my question and repost my question.

But, your pointers did assist me in finding the problem...so, thanks for the help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial