Click to See Complete Forum and Search --> : CDO Mail sending to 3 different email addresses based on user selection


dpmilligan
05-12-2005, 03:08 PM
I need to process a form in which the user will select one of three options from a drop-down menu, lets say A, B or C.

When CDO processes the form, I need it to send the results to 3 different email addresses, one email each for optiosn A, B and C.

I am pretty new to ASP and need some help.

Thank you,

Darren

phpnovice
05-12-2005, 07:29 PM
Just build your SELECT as follows:

<select name="recipient" size="1">
<option value="email1@domain.com">Name 1</option>
<option value="email2@domain.com">Name 2</option>
<option value="email3@domain.com">Name 3</option>
</select>

Then, your ASP code would pick up the selected email address value as follows:

Request.Form("recipient")