Login | |
|
 |
RE: two conditions to help send email from ASP form - 9/11/2006 8:13:35 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
I would recommend looking at the use of a bit mask for this. It looks like you have 3 potential people to send the email to. So, your bits could represent Supervisor, CS, and person respectively. So a value of 100 would email the super only, 101 would email the super and the person, etc.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: two conditions to help send email from ASP form - 9/11/2006 8:27:19 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
'First you would want to go through and check the conditions for each possibility: Const SUPER = &h100 Const CS = &h010 Const PERSON = &h001 strTest = 0 'If the super radio button is pressed email the super If CopySupervisor = "Yes" Then strTest = strTest + SUPER End If If 'If the name changed, email CS If fullNameInfo <> newNameInfo Then strTest = strTest + CS End If 'Always email the person strTest = strTest + PERSON 'Then check the bit mask and add the proper people to the cc field If strTest And SUPER Then WScript.Echo "Email Super" End If If strTest And CS Then WScript.Echo "Email CS" End If If strTest And PERSON Then WScript.Echo "Email Person" End If
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|