Email Form - 'To' selector

Sorry about the subject of this topic, I was just trying to think of something to best explain what I’m trying to do…

What I have is a simple email form on my site, but because it’s for a band, I’d like it to have something (eg, a drop down box), to allow the visitor to choose who they’d like the email to go to. The form would then send the email to the person they chose.

For example;

[ul]
[li]Whole Band[/li][li]Singer[/li][li]Guitarist[/li][li]Bassist[/li][li]Drummer[/li][/ul]Seleting guitarist and hitting submit, would email the form to the guitarist’s email address, and no-one else. Selecting someone else would email them, and so on and so forth.

Does anyone have any code etc that will allow me to do this please?

Thanks in advance :slight_smile:

this is fairly simple… what language do you want to code in? ASP, asp.net, php? etc…

what you could do is a combo box like this:

Following on from the above… in your ASP code (for example), you could have:

Dim oMail
Set oMail = Server.CreateObject(“Persits.MailSender”)
oMail.AddAddress Request.Form(“email_to”)
… set other mail parameters …
oMail.Send

Thanks for the help so far :slight_smile:

I’d like to code in ASP, if possible, please.

I’ll give the above a go when I get a free minute on Sunday.