faqts : Computers : Programming : Languages : PHP : Installation and Setup : Operating Systems : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 78 people (23%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

How can I configure PHP to use mail() function with a local IIS SMTP Server ?

Mar 12th, 2002 08:57
Andy Kraut, Benjamin Lupu, http://www.php.net/manual/en/ref.mail.php


If you look at the manual page for the mail command, you will see that 
there is a configuration directive for SMTP server, which would allow 
you to set the hostname for the SMTP server you wish to use.  It 
shouldn't matter whether it's the IIS server or not.  If it's running 
on the local machine, you would want to set the SMTP directive 
to 'localhost'.