IIS and MAIL help requried

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shyamkrishna
Forum Newbie
Posts: 1
Joined: Sat Feb 15, 2003 8:24 am

IIS and MAIL help requried

Post by shyamkrishna »

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
Post Reply