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

Send multiple emails HELP

Status
Not open for further replies.

Technos

Programmer
Mar 15, 2002
47
US
Hi,
I need to send email to the the sender itself if CopyMe is checked. Please tell me where i'm wrong.
My code is:
Code:
[b]
if Request.Form("copyMe") = "checkbox" then
	objMail.To = request("emailTo") & "," & Request.form("emailFrom")[/b]

 
if Request.Form("copyMe") = "on" ' correct

bye
antonio.paterno@aspcode.it
 
This also will work;

if Request.Form("copyMe") then
objMail.To = request("emailTo") & "," & Request.form("emailFrom")


When you do an if statement you evaluate it to true or false
Checkboxes are either on(true),checked, or off(false)unchecked.

on = True
off= False

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top