Email via ASP

A

Arnaldo Martinez

Does anyone knows about any sample code that I may be able to use to send
email when an user click the submit button?
 
B

Brent

Try using the CDONTS library. As long as your SMTP site
is running (you can find this in the internet services
manager console), you can use the following code:

<%
dim myEMail
set myEMail = Server.CreateObject("CDONTS.NewMail")

myEMail.From = "(e-mail address removed)"
myEMail.To = "(e-mail address removed)"
%>
etc.

Give that a try.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,646
Members
47,247
Latest member
GabrieleL2

Latest Threads

Top