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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Textbox Value for email

Status
Not open for further replies.

Lambro

Programmer
Aug 22, 2001
258
US
I have a textbox called txtEmail on a form with a submit button using .asp

When I enter an email address into that box and press the submit buttom, I would like that address to become the send to address using cdonts. Also I would like to have an email address thats already in the send to like you see sales@test.com is. So basically I want two emails to be present.


Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "info@test.com"
objMail.To = "sales@test.com" & email ???
objMail.Subject = "This is a test"
objMail.Body = "Testing"
objMail.MailFormat = 0
objMail.BodyFormat = 0
objMail.Send
Set objMail = Nothing
 
Try (untested)
objMail.To = "sales@test.com," & request.form("txtEmail")

hth,

Jessica [ponytails2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top