View Full Version : ASP Form
8mycsh
08-28-2002, 11:55 PM
I have created a form in Html with ASP. Here's my question, when it sends the email I want it to take the email address from the fill in form and add it to the "from area, when I view it from my outlook express." Is this possible?
whammy
08-29-2002, 12:56 AM
email = Request.Form("email")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = "someone@somewhere.com"
objMail.From = email
objMail.cc = ""
objMail.bcc = ""
'objMail.mailFormat = 0 'This is for HTML
'objMail.bodyFormat = 0 'This is for HTML
MessageBody = "Hi there." & CHR(13) & CHR(13)
MessageBody = MessageBody & "This is another line." & CHR(13)
objMail.Subject = "This is a subject."
objMail.Body = MessageBody
objMail.Send
Set objMail = Nothing
:D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.