You are here: Mail function on IIS « PHP Programming Language « IT news, forums, messages
Mail function on IIS

Posted by ukiEMAIL on 12/16/33 11:59

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация