So here's my problem.....I need to set up different email
distributions based on which option in the following Select form has
been chosen....For instance if "Putaway" is chosen it needs to email
User1@here.whatever and User4@here.whatever but if "Loaded" is chosen
it needs to email User2@here.whatever and User3@here.whatever, etc,
etc...
I'm aware that the only thing that really needs to change is the
"Mail.AddAddres s" line (at least in my own mind that seems
correct).....I was just kind of hoping to have something along the
lines of ;
Set Mail = Server.CreateOb ject("Persits.M ailSender")
Mail.Host = "xxxx"
Mail.From = "me@me.com"
Mail.FromName = "Test"
Mail.IsHTML = True
Mail.Subject = Reason
If Reason = Putaway Then
Mail.AddAddress User1Variable
Mail.AddAddress User4Variable
ElseIf Reason = Loaded Then
Mail.AddAddress User2Variable
Mail.AddAddress User3Variable
End If
Hopefully you understand the gist of what I'm attempting....I know
that an ElseIf statement may not be the best method but that's why I'm
posting...
Here's the Select that I refer to....
Response.Write "<select size='1' name='reason' tabindex='8'>"
Response.Write "<option value='Putaway' >CASE PUTAWAY</option>"
Response.Write "<option value='Conversi ons'>CONVERSION S</option>"
Response.Write "<option value='Drivers' >DRIVER TEAM</option>"
Response.Write "<option value='Inspecti ons'>INSPECTION S</option>"
Response.Write "<option value='Invoiced '>INVOICED</option>"
Response.Write "<option value='Label'>L ABEL REPLACES</option>"
Response.Write "<option value='Loaded'> LOADED</option>"
Response.Write "<option value='Located' >LOCATED STATUS</option>"
Response.Write "<option value='Manifest ed'>MANIFESTED</option>"
Response.Write "<option value='Other'>O THER</option>"
Response.Write "<option value='Packed'> PACKED STATUS</option>"
Response.Write "<option value='Pending' >PENDING LOCATION
PUTAWAY</option>"
Response.Write "<option value='Picking' >PICKING</option>"
Response.Write "<option value='Receivin g'>RECEIVING</option>"
Response.Write "<option value='Shorts'> SHORTS</option>"
Response.Write "<option value='Test'>TE ST</option>"
Response.Write "</select>"
Any suggestions/advice/pointers/URLs would be extremely helpful...(I
haven't posted the code in its entirety, only what I think you could
use to look at...If you want the entire length of code, please let me
know and I'll post it if necessary....)
distributions based on which option in the following Select form has
been chosen....For instance if "Putaway" is chosen it needs to email
User1@here.whatever and User4@here.whatever but if "Loaded" is chosen
it needs to email User2@here.whatever and User3@here.whatever, etc,
etc...
I'm aware that the only thing that really needs to change is the
"Mail.AddAddres s" line (at least in my own mind that seems
correct).....I was just kind of hoping to have something along the
lines of ;
Set Mail = Server.CreateOb ject("Persits.M ailSender")
Mail.Host = "xxxx"
Mail.From = "me@me.com"
Mail.FromName = "Test"
Mail.IsHTML = True
Mail.Subject = Reason
If Reason = Putaway Then
Mail.AddAddress User1Variable
Mail.AddAddress User4Variable
ElseIf Reason = Loaded Then
Mail.AddAddress User2Variable
Mail.AddAddress User3Variable
End If
Hopefully you understand the gist of what I'm attempting....I know
that an ElseIf statement may not be the best method but that's why I'm
posting...
Here's the Select that I refer to....
Response.Write "<select size='1' name='reason' tabindex='8'>"
Response.Write "<option value='Putaway' >CASE PUTAWAY</option>"
Response.Write "<option value='Conversi ons'>CONVERSION S</option>"
Response.Write "<option value='Drivers' >DRIVER TEAM</option>"
Response.Write "<option value='Inspecti ons'>INSPECTION S</option>"
Response.Write "<option value='Invoiced '>INVOICED</option>"
Response.Write "<option value='Label'>L ABEL REPLACES</option>"
Response.Write "<option value='Loaded'> LOADED</option>"
Response.Write "<option value='Located' >LOCATED STATUS</option>"
Response.Write "<option value='Manifest ed'>MANIFESTED</option>"
Response.Write "<option value='Other'>O THER</option>"
Response.Write "<option value='Packed'> PACKED STATUS</option>"
Response.Write "<option value='Pending' >PENDING LOCATION
PUTAWAY</option>"
Response.Write "<option value='Picking' >PICKING</option>"
Response.Write "<option value='Receivin g'>RECEIVING</option>"
Response.Write "<option value='Shorts'> SHORTS</option>"
Response.Write "<option value='Test'>TE ST</option>"
Response.Write "</select>"
Any suggestions/advice/pointers/URLs would be extremely helpful...(I
haven't posted the code in its entirety, only what I think you could
use to look at...If you want the entire length of code, please let me
know and I'll post it if necessary....)
Comment