snippet library logo
The Best Html Forum Around
in category
ASP / Emailing / Simple Email
Snippet details
ID: 98
Viewed: 1792
Added: 2002-03-18
Version:

User Rated at: 5 Stars
Rate This:
Snippets in this catagory         
Show Printable 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


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.