Forum Moderators: open
eg.
<select name="recipient" size="1" value="<%=contactRecipient%>">
<option value="sales@widgetmonkey.com">Sales Department</option>
<option value="support@widgetmonkey.com">Service and Support Department</option>
__________________________________________
Then using code similar to this
contactRecipient = request.form("recipient")
__________________________________________
and this
objCDONTS.To = contactRecipient
__________________________________________
The form is sent to the relevent email address. The only thing is that I don't want the email addresses to be served to the browser like this so that spambots etc can read it.
Can anyone advise me on the code needed to substitute the appropriate email address in via the asp code, so that in the actual form there only a value such as 'support' and not 'support@widgetmonkey.com'.
Hope someone can advise.
<select name="recipient">
<option value="sales">Sales Department</option>
<option value="support">Service and Support Department</option>
__________________________________________
Then using code similar to this
select case request("recipient")
case "sales"
contactRecipient = "sales@widgetmoney.com"
case "support"
contactRecipient = "sales@widgetmoney.com"
case else
contactRecipient = "catchall@widgetmoney.com"
end select
__________________________________________
and this
objCDONTS.To = contactRecipient