Added: Mar 18, 2002
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo
In ASP you can use the CDONTS.NewMail Object to send emails. Simply create a form with your address, subject and body etc... and submit it an ASP page with this code in it (changing the strFrom, strTo, strSubject, strBody to Request.Form(from_name)).
strFrom = "firstname.lastname@example.org"
strTo = "email@example.com"
strSubject = "This is the Subject"
strBody = "This is the email body"
set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = strFrom
objCDOMail.To = strTo
objCDOMail.Subject = strSubject
objCDOMail.Body = strBody
set objCDOMail = Nothing
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.