If you want to disable default smtp server in IIS and use the mail through any remote mail server you can use the pear package. To activate the pear mail service in your php kindly go through the following steps
According to my guide , I guess you have already installed php under your IIS
Open the command prompt in your server go to the php installed folder
eg : cd c:\php
execute the following command to install pear
c:\php\go-pear
give all those default
that will install pear
now if you try to send the mail through pear it may generate the following error
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.;c:\php\pear') in
This message indicate you have to install the pear mail package, you can install pear mail package by giving the following command in command prompt
c:\php\pear install mail
this will install the pear mail package
If you try to send the mail again you may get the following error
Warning: Mail_smtp::include_once(Net/SMTP.php) [function.Mail-smtp-include-once]: failed to open stream: No such file or directory in C:\php\PEAR\Mail\smtp.php on line 206
Warning: Mail_smtp::include_once() [function.include]: Failed opening 'Net/SMTP.php' for inclusion (include_path='.;c:\php\pear') in C:\php\PEAR\Mail\smtp.php on line 206
Fatal error: Class 'Net_SMTP' not found in C:\php\PEAR\Mail\smtp.php on line 210
This error indicate you have to install Pear Net_SMTP package , you can install that through the following command in command prompt
c:\php\pear install Net_SMTP
Now you have installed PEAR packages to send the email with SMTp authentication.
If you need the php code to send the mail with SMTP authentication, kindly click on the link given below
By
Lijo Peter
Adsin Technologies



Domain Registration

