For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > September 2006 > Mail function on IIS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Mail function on IIS
ukiEMAIL@gmail.com

2006-09-28, 6:57 pm

Hi
I've configured smtp and pop3 on server with IIS. I test if it is
working using outlook. I've sent successfully e-mail to myself and to
other accouts of my friends.
Unfortunatelly I'm stuck with configuring php that mail function will
send emails.
Steps that I've made to do so were:
- I've set smtp = my.smtp port = 25 and sendmail_from = my@mail.com
in my php.ini file.
- I wrote simple script
<?php
$to = "my@mail.com";
$subject = "Hi!";
$body = "thi is content";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}

?>

And as you probably know the script's output is Message delivery
failed...

Is there an extra module or thing that I have to do??
Do I have to enable some additional features??

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com