Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

webform gets spam

Status
Not open for further replies.

edgardg

IS-IT--Management
May 9, 2001
51
AR
I have a webform and seems some spammer got hold of it.
Here is the code.
I need a way to hide the email. Is it possible to do it here w/out changing much on the form?
thanks


DIM strName, strEmail,strComments, Mailer

strName = request.form("txtName")
strEmail =request.form("txtEmail")
strComments =request.form("txfComments")

Set Mailer =Server.CreateObject("CDONTS.NewMail")
Mailer.From = strEmail
Mailer.Subject ="email to webmaster"
Mailer.To = "mymail@mysite.com"
Mailer.BodyFormat=0
Mailer.MailFormat=0
Mailer.Body = "Requested info." &"<br>" &"<br>" & _
"<b>Name: </b>" & strName &"<br>" & _
"<b>Email Address: </b>" &strEmail &"<br>" & _
"<b>Comments: </b>" &strComments &"<br>"

Mailer.Send
Set Mailer = nothing

Response.write "<div align='center'>Thank you for your comments<br>"
</div>"

%>
<P><h4 align="center"><a href="index.html">Go Back</a> </h4>
</P>
 
Thanks for the link. I did not know what I was looking for exacly.
Now let me ask you; where exacly do I paste this generated code within my code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top