Send mail using CDNOTS ASP component for WIndows base Server. Below is sample code to send an email using CDONTS:
<%
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = “Name <email@domain.com>”
objMail.From = “Name<email@domain.com>”
objMail.Subject = “CDONTS Sample Script”
BodyText = “This is a test email.” & vbCRLF
BodyText = BodyText & “It was sent using CDONTS” & vbCRLF
BodyText = BodyText & vbCRLF
objMail.Body = BodyText
objMail.AttachFile “c:\attachfile.txt” // For Attachment
objMail.Send
%>
Kailash