Design and Development > ASP
CDONTS Sample script - ASP Sendmail script
(1/1)
Kailash:
Send mail using CDNOTS ASP component for WIndows base Server. Below is sample code to send an email using CDONTS:
--- Code: ---<%
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = “Name <[email protected].com>”
objMail.From = “Name<[email protected].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
%>
--- End code ---
Kailash
Navigation
[0] Message Index
Go to full version