Avatar of cerksees
cerkseesFlag for United States of America

asked on 

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

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 ....

 User generated image
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....

 User generated image
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....

 User generated image
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
WordPressEmail ProtocolsWindows Server 2008

Avatar of undefined
Last Comment
cerksees
Avatar of cerksees
cerksees
Flag of United States of America image

ASKER

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

How do I get email working in Wordpress 3.1.2 on Windows Server 2008 R2?
Avatar of cerksees
cerksees
Flag of United States of America image

ASKER

Got to get some sleep...be back later.....
ASKER CERTIFIED SOLUTION
Avatar of gwkg
gwkg
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of cerksees
cerksees
Flag of United States of America image

ASKER

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.
Avatar of cerksees
cerksees
Flag of United States of America image

ASKER

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!
Windows Server 2008
Windows Server 2008

Windows Server 2008 and Windows Server 2008 R2, based on the Microsoft Vista codebase, is the last 32-bit server operating system released by Microsoft. It has a number of versions, including including Foundation, Standard, Enterprise, Datacenter, Web, HPC Server, Itanium and Storage; new features included server core installation and Hyper-V.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo