IIS and MAIL help requried
Posted: Sat Feb 15, 2003 8:24 am
Hi Friends,
I am having problems with sending mail using IIS. I have
Windows XP Professional
IIS
SMTP on localhost
Settings in PHP.ini
[mail function]
; For Win32 only.
SMTP = 192.168.1.102
; For Win32 only.
sendmail_from = shyam@arjarapu.com
I dont have any DNS.
Code used
<?
if (mail ( "shyamakrishna@hotmail.com", "Use PHP Everyday", "Don't forget to floss and use PHP everyday!", "From: hygienist@phphelp.tld\nX-Mailer: My PHP Script\n"))
print "mail sent";
else
print "error";
?>
corresponding valid values of to, subject, message variables are set above this code.
I see mail could not be sent message with following warning.
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for shyamakrishna@hotmail.com in c:\inetpub\wwwroot\php\mail.php on line 3
I dont even see that mail residing in any of the sub directories of mailroot. Please suggest me where did I go wrong. Thank for you time
Shyam
I am having problems with sending mail using IIS. I have
Windows XP Professional
IIS
SMTP on localhost
Settings in PHP.ini
[mail function]
; For Win32 only.
SMTP = 192.168.1.102
; For Win32 only.
sendmail_from = shyam@arjarapu.com
I dont have any DNS.
Code used
<?
if (mail ( "shyamakrishna@hotmail.com", "Use PHP Everyday", "Don't forget to floss and use PHP everyday!", "From: hygienist@phphelp.tld\nX-Mailer: My PHP Script\n"))
print "mail sent";
else
print "error";
?>
corresponding valid values of to, subject, message variables are set above this code.
I see mail could not be sent message with following warning.
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for shyamakrishna@hotmail.com in c:\inetpub\wwwroot\php\mail.php on line 3
I dont even see that mail residing in any of the sub directories of mailroot. Please suggest me where did I go wrong. Thank for you time
Shyam