We help IT Professionals succeed at work.
Get Started

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

1,686 Views
Last Modified: 2012-06-22
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
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE