D
dmiller23462
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
(e-mail address removed) and (e-mail address removed) but if "Loaded" is chosen
it needs to email (e-mail address removed) and (e-mail address removed), etc,
etc...
I'm aware that the only thing that really needs to change is the
"Mail.AddAddress" 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.CreateObject("Persits.MailSender")
Mail.Host = "xxxx"
Mail.From = "(e-mail address removed)"
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='Conversions'>CONVERSIONS</option>"
Response.Write "<option value='Drivers'>DRIVER TEAM</option>"
Response.Write "<option value='Inspections'>INSPECTIONS</option>"
Response.Write "<option value='Invoiced'>INVOICED</option>"
Response.Write "<option value='Label'>LABEL REPLACES</option>"
Response.Write "<option value='Loaded'>LOADED</option>"
Response.Write "<option value='Located'>LOCATED STATUS</option>"
Response.Write "<option value='Manifested'>MANIFESTED</option>"
Response.Write "<option value='Other'>OTHER</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='Receiving'>RECEIVING</option>"
Response.Write "<option value='Shorts'>SHORTS</option>"
Response.Write "<option value='Test'>TEST</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
(e-mail address removed) and (e-mail address removed) but if "Loaded" is chosen
it needs to email (e-mail address removed) and (e-mail address removed), etc,
etc...
I'm aware that the only thing that really needs to change is the
"Mail.AddAddress" 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.CreateObject("Persits.MailSender")
Mail.Host = "xxxx"
Mail.From = "(e-mail address removed)"
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='Conversions'>CONVERSIONS</option>"
Response.Write "<option value='Drivers'>DRIVER TEAM</option>"
Response.Write "<option value='Inspections'>INSPECTIONS</option>"
Response.Write "<option value='Invoiced'>INVOICED</option>"
Response.Write "<option value='Label'>LABEL REPLACES</option>"
Response.Write "<option value='Loaded'>LOADED</option>"
Response.Write "<option value='Located'>LOCATED STATUS</option>"
Response.Write "<option value='Manifested'>MANIFESTED</option>"
Response.Write "<option value='Other'>OTHER</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='Receiving'>RECEIVING</option>"
Response.Write "<option value='Shorts'>SHORTS</option>"
Response.Write "<option value='Test'>TEST</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....)