Snippet details
ID: 98
Viewed: 1792
Added: 2002-03-18
Version:
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)).
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown
<!---Head--->
none
<!---Body--->
<%
Dim strTo
Dim strSubject
Dim strBody
Dim objCDOMail
Dim strForm
Request.Form(form_name)
strFrom = "webmaster@yourwebsite.com"
strTo = "enduser@domain.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
objCDOMail.Send
set objCDOMail = Nothing
%>
No Reviews to show
