Hi,
I read almost all the articles/posts on email setup and how to use sendmail using XAMPP for Windows. But I fail to make it work.
XAMPP version 1.7.7
Windows Version: XP SP3
php.ini file:
[*]
[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP = localhost
; http://php.net/smtp-port
; smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
[/*]
sendmail.ini file...
[*]
[sendmail]
defaults
logfile="C:\xampp\sendmail\sendmail.log"
smtp_server=smtpout.secureserver.net
smtp_port=25
smtp_ssl=none
default_domain=abcxyz.com
error_logfile=error.log
debug_logfile=debug.log
auth_username=abc@abcxyz.com
auth_password=temppassword
force_sender=abc@abcxyz.com
[/*]
The debug.log file in sendmail folder says that message refused.
[*]
11/10/03 15:40:01 ** --- MESSAGE BEGIN ---
11/10/03 15:40:01 ** To: abc@abcxyz.com
11/10/03 15:40:01 ** Subject: Test email subject from PHP.
11/10/03 15:40:01 ** MIME-Version: 1.0
11/10/03 15:40:01 ** Content-Type: text/html; charset="iso-8859-1"
11/10/03 15:40:01 **
11/10/03 15:40:01 ** Test email body from PHP.
11/10/03 15:40:01 ** --- MESSAGE END ---
11/10/03 15:40:01 ** Connecting to smtpout.secureserver.net:25
11/10/03 15:40:01 ** Connected.
11/10/03 15:40:01 << 220 smtpauth22.prod.mesa1.secureserver.net ESMTP<EOL>
11/10/03 15:40:01 >> EHLO MYCOMPUTER.abcxyz.com<EOL>
11/10/03 15:40:01 << 250-smtpauth22.prod.mesa1.secureserver.net<EOL>250-AUTH LOGIN PLAIN<EOL>250-8BITMIME<EOL>250 PIPELINING<EOL>
11/10/03 15:40:01 ** Authenticating as abc@abcxyz.com
11/10/03 15:40:01 >> AUTH LOGIN<EOL>
11/10/03 15:40:02 << 334 VXNlcm5hbWU6<EOL>
11/10/03 15:40:02 >> c2lkQGNiYWdyb3VwdXNhLmNvbQ==<EOL>
11/10/03 15:40:02 << 334 UGFzc3dvcmQ6<EOL>
11/10/03 15:40:02 >> JElkZDIwMDY=<EOL>
11/10/03 15:40:02 << 235 Authentication succeeded.<EOL>
11/10/03 15:40:02 >> MAIL FROM: <abc@abcxyz.com><EOL>
11/10/03 15:40:02 << 250 Sender accepted.<EOL>
11/10/03 15:40:02 >> RCPT TO: <abc@abcxyz.com><EOL>
11/10/03 15:40:02 << 250 Recipient accepted.<EOL>
11/10/03 15:40:02 >> DATA<EOL>
11/10/03 15:40:02 << 354 Please start mail input.<EOL>
11/10/03 15:40:02 >> Date: Mon, 3 Oct 2011 15:40:02 -0400<EOL>
11/10/03 15:40:02 >> To: abc@abcxyz.com<EOL>
11/10/03 15:40:02 >> Subject: Test email subject from PHP.<EOL>
11/10/03 15:40:02 >> MIME-Version: 1.0<EOL>
11/10/03 15:40:02 >> Content-Type: text/html; charset="iso-8859-1"<EOL>
11/10/03 15:40:02 >> <EOL>
11/10/03 15:40:02 >> Test email body from PHP.<EOL>
11/10/03 15:40:02 >> .<EOL>
11/10/03 15:40:02 << 250 Mail queued for delivery.<EOL>
11/10/03 15:40:02 >> QUIT<EOL>
11/10/03 15:40:02 << 221 Closing connection. Good bye.<EOL>
11/10/03 15:40:02 ** Disconnecting from smtpout.secureserver.net:25
11/10/03 15:40:02 ** Disconnected.
11/10/03 15:40:02 ** Disconnected.
11/10/03 15:40:02 ** Message Refused.
[/*]
The same setup if I use for gmail, it works (with gmail specific port and smtp). But not with godaddy. Godday support is not helping either they say, it's a code issue and they cannot help.
Please advise. Thank you so much!