Click to See Complete Forum and Search --> : simple Dropdown question


maw_webdesign
03-20-2003, 09:58 AM
Hi there...

I'd like to make a dropdown with different emailaddresses. And on submit it should sent an email to the choosen address and give an alert-window with "Email sent".

I'm using this script to email:

<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName__ = "Joe’s Widgets Corp."
Mailer.FromAddress= "Joe@somehost.com"
Mailer.RemoteHost = "mailhost.localisp.net"
Mailer.AddRecipient "John Smith", "jsmith@anotherhostname.com"
Mailer.Subject____= "Great SMTP Product!"
Mailer.BodyText__ = "Dear Stephen" & VbCrLf & "Your widgets order has been processed!"
%>

Can anyone give me an example how to do this...?

Thnx,

Leon