|
You can add email functionality to your ASP programs using CDO.Message object. CDOSYS is a built-in component in ASP. We will use this component to send e-mail with ASP.
Here is the example code to send email.
<%
Dim mail
Set mail = Server.CreateObject("CDO.Message")
mail.To = "receiver@domain.com"
mail.From = "sender@domain.com"
mail.Subject = "email subject"
mail.TextBody = "email body"
mail.Send()
Response.Write("Mail Sent")
Set mail = nothing
%> |