Not a Member Yet,
Click here to Register

ID: 98
Viewed: 4016
Added: Mar 18, 2002
Version:
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo



User Rated at: 5 Stars5 Stars5 Stars5 Stars5 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

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)).

<!---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 Comments to show

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


Replying to a Comment...


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.

© 2002 - 2024 snippetlibrary.com All Rights Reserved. Conditions
Do NOT follow this link or you will be banned from the site!