Matthew Penn's Blog! Email him at matt@penncomm.com
Recent Articles
PennComm Provides Online Volunteer Registration Solution for the 2012 Buckeye Wheelchair Games
New Client - BirdFeederDiscovery.com
Gold Crest Distributing Presentation
JabberText.com Provides Group Text Messaging For Organizations Nationwide
Penn Communications Redesigns & Develops Website for Gold Crest Distributing
Job Complete - Work Request System for Mexico Public Schools
Here are two simple examples for using CDONTS to send an email message from your website. A couple of notes:
<%Set objCDO1 = Server.CreateObject("CDONTS.NewMail")
objCDO1.To = Request.QueryString("recipient")
objCDO1.From = "test@test.com"
objCDO1.cc = "test@test.com"
objCDO1.Subject = Request.QueryString("subject")
objCDO1.Body = Request.QueryString("name") & " has submitted an online registration for this program. Email address is: " & Request.QueryString("email") & ". Phone number is " & Request.QueryString("phone") & ". He/She learned about this event from " & Request.QueryString("referral") & vbcrlf&_
"Address 1: " & Request.QueryString("Address1") & vbcrlf&_
"Address 2: " & Request.QueryString("Address2")
objCDO1.Send 'send off the email !
Set objCDO1 = Nothing
%>
Posted: 2007-02-22