How to Configure SMTP Mail Server
Introduction
IIS SMTP Service is a high performance SMTP server on Windows NT/2000/XP. We can use
it to send email easily with ANSMTP. This tutorial shows how to install IIS SMTP service and
program with it.
How to can send email by IIS SMTP Service
How to use ESMTP authentication
How to send email by pickup path of IIS SMTP Service
How to handle undeliverable email
Installation and Deployment
You should download the ansmtp installer and install it on your machine at first. If you want
to distribute or deploy ansmtp without ansmtp installer, please click here to learn more.
Install IIS SMTP Service
You can install IIS on Windows 2000/XP as follows: "Control Panel->Add/Remove
Programs->Windows Components->Internet Information Service->SMTP Service". For
Windows NT user, you can install it from Option Pack 4.0 of Windows NT. After installed,
you can start it from "Control Panel->Administrative Tools->Internet Information Service".
Send Email by IIS SMTP Service
Now you can send email by IIS SMTP Service with the following code:
[ASP]
<%
Set oSmtp = Server.CreateObject("AOSMTP.Mail")
oSmtp.ServerAddr = "127.0.0.1" 'computer ip address.
oSmtp.FromAddr = "test@adminsystem.net"
oSmtp.AddRecipient "Support Team", "support@adminsystem.net", 0
oSmtp.Subject = "Test"
oSmtp.BodyText = "Hello, this is a test...."
If oSmtp.SendMail() = 0 Then
Response.Write "Message delivered!"
Else
Response.Write oSmtp.GetLastErrDescription()
End If
%>
ESMTP authentication/Trusted IP Addresses
The default setting of IIS Smtp service may cause failure in sending email ("Error with
sending recipient"). Here are two solutions to the problem.
Enable ESMTP authentication of IIS SMTP Service
1. "Control Panel->Administrative Tools->Internet Information Service->Default SMTP
Virtual Server->Properties->Access->Authentication. ". Check the BASIC Authentication.
2. "Control Panel->Administrative Tools->Internet Information Service->Default SMTP
Virt