Email Form - 'To' selector

OJM

Perch
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;

  • Whole Band
  • Singer
  • Guitarist
  • Bassist
  • Drummer
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 :)
 
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 :)

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.
 
Back
Top