Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I send ASP email instead of HTML email?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've set up a form which, when submitted, sends the user to a 'thank you' page and sends an HTML email to the intended recipient. This is all very well, but I wish to send the the filled in form contents by email as a web page.

I can send a plain text email which includes form data and I can send an HTML email which cannot carry the form data, but I cannot send a combination of the two - an HTML/ASP email containing form data! Frustrating.

Is it possible to send it as an ASP page containing the filled in contents of the form?

I have tried, but it will not accept any ASP code.
Thanks in advance.
 
You cannot actually send asp pages via email as these pages construct HTML documents when executed from an ASP enabled server.

G -GTM Solutions, Home of USITE-
-=
 
You would use CDONTS

Here

Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.To = Request.form("emailField")
objCDO.From = sYourEmail
objCDO.Subject = "YourSubject"
objCDO.Body = Request.form("bodyOfText")
objCDO.Send
Request.form("anything else")


Set objCDO = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top