Forum Moderators: open

Message Too Old, No Replies

The best way to send email via dropdown menu?

Wanting to obstruct the spambot

         

Googly

9:30 am on Aug 5, 2003 (gmt 0)



I have an asp contact form from which 10 employees from the company can be contacted. At the top of the form I have a 'select-option' menu with each person's email address: <option value="hello@bye.com">Trevor McGreeting</option>. Would a spam bot still be able to harvest this email address? If it can then I would need to put the email address in the actual ASP-VBscript code? However I'm not sure how to do this. Could anyone help me here please?

Cheers
Googly

I definitely have to invest in an ASP book ASAP!

TheDave

11:27 am on Aug 5, 2003 (gmt 0)

10+ Year Member



Perhaps specify the name only, and add the rest of the email address at the server when you send the mail.

Googly

1:06 pm on Aug 5, 2003 (gmt 0)



That was the route I was thinking about, it's just I'm not sure what code to input. Can anyone suggest an example please?

Here's some sample HTML.

<form name="contact" method="post" action="contactus.asp"> <select name="recipient" class="slideshowtext" size="1">
<option value="bob">Bob Hartleberry - Managing Director</option>
<option value="bert">Bertie Palmer - Finance Director</option></select></form>

Thanks
Googly

le_gber

7:22 am on Aug 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Googly try this:

<%
Dim strRecipient, strEmailTo
strRecipient = request.form("recipient")

Select Case strRecipient
Case "bob"
strEmailTo = "bob@domain.com"
Case "bert"
strEmailTo = "bert@domain.com"
...
Case Else
code here for what happend if nobody was selected or a default email address may be
End Select

And your email sender code with
emailVariableName.TO = strEmail
%>

Leo

The Cricketer

1:30 pm on Aug 18, 2003 (gmt 0)

10+ Year Member



I've had to change my name from Googly for obvious reasons.

le_gber I still haven't spent much time on this problem, but I will revisit it soon.

Googly or The Cricketer as i'm now known!

TheDave

10:58 pm on Aug 18, 2003 (gmt 0)

10+ Year Member



The reasons are not obvious to me? Why did you have to change your name? Did the members of WebmasterWorld find it sacrelidge? :/

The Cricketer

8:26 am on Aug 19, 2003 (gmt 0)

10+ Year Member



Well apparently it was too close to the word Google, even though I have never posted in a Google forum. I had that nick even before I had anything to do with search engines and had even heard of Google. Googly's a sporting term.

Someone thought I was a Google employee. Oh well. Such is life.

TheDave

9:31 am on Aug 19, 2003 (gmt 0)

10+ Year Member



Thats a shame :( Silly americans not knowing what a googly is :P Not that I'd have a clue about baseball either :P

RossWal

5:03 pm on Aug 19, 2003 (gmt 0)

10+ Year Member




If it can then I would need to put the email address in the actual ASP-VBscript code?

Or you could load the listbox via javascript in the page onload event. Easy to do with plenty of samples on the web. I think that should thwart the bots.


Thats a shame :( Silly americans not knowing what a googly is :P Not that I'd have a clue about baseball either :P

You'll want to know that most baseball players spend a good deal of time 'shagging flies'. In fact the coach insists upon it!