How does an express Web site join the email delivery function?
How do I add an email to your website?
In the Windows NT Option Pack, including the SMTP Service, provides the ability to send mail. Therefore, to perform an example of an email delivery, you must install the SMTP Service for the Windows NT Option Pack.
How do I add the SMTP service email to an ASP program? First set mail1 = Server.CreateObject ("CDONTS"). NewMail ") to call the components of the SMTP service, and then set:
Mail1. to = "Recipient e-mail Address"
Mail1. from = "e-mail address of sender"
Mail1. Subject = "Purport"
Mail1. BODY = "E-mail Text"
The last Mail1.send is the beginning of the mail.
ASP program, as follows:
<%
Set mail1 = Server.CreateObject ("CDONTS. NewMail ")
Mail1. to = "Abc@xxx.com"
Mail1. from = "jackchou@tpts5.seed.net.tw"
Mail1. Subject = "Purport"
Mail1. BODY = "E-mail Text"
Mail1. Send
%>
Email Send ok!
After the last line of Mail1.send began to send mail.
The SMTP service sends the outgoing email to the Mailroot queue and then sends it out, if it is not transferred, it is placed in the Mailroot's badmail.
After the Mailroot queue, you can see this email to be sent.