whoknows361
Technical User
Hello ASP'ers... Here is my dillemma. I have created a simple form which users enter info & then that info is emailed. Here is the code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
msglname = request.form("lname")
msgfname = request.form("fname")
msgBody = request.form("message")
email = request.form("email")
Set myMail=CreateObject("CDO.Message")
myMail.Subject="This is a customer contact email!"
myMail.To="spicetradersteas@yahoo.com"
myMail.From="contactus@spicetradersteas.com"
myMail.TextBody="this email is from " & msgfname & " " & msglname & vbCrLf & msgBody & email
myMail.Send
set myMail=nothing
%>
It seems to work, but here is the problem. Every night or even very early in the morning I will receive 3-5 emails that look like this:
From : <contactus@spicetradersteas.com>
Sent : Thursday, September 22, 2005 2:50 AM
To : <spicetradersteas@yahoo.com>
Subject : This is a customer contact email!
this email is from flb@spicetradersteas.com flb@spicetradersteas.com
flb@spicetradersteas.com
flb@spicetradersteas.com
It looks as though all fields are being populated with non-sensical letters & they are always different (the letters) & they are always from spicetradersteas.com ?! And I get like 3 emails all sent at the same time ?! Could this be something with the server? (as it is late night/early morning). Can a server run some sort of update program or something that would process this form automatically? Or is there something wrong with my coding? I have verification restrictions on the forms (though the code above doesn't show it) but I was having this problem before I put the verification parameters in so I know they are not the problem. Please help. I appreciate it in advance.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
msglname = request.form("lname")
msgfname = request.form("fname")
msgBody = request.form("message")
email = request.form("email")
Set myMail=CreateObject("CDO.Message")
myMail.Subject="This is a customer contact email!"
myMail.To="spicetradersteas@yahoo.com"
myMail.From="contactus@spicetradersteas.com"
myMail.TextBody="this email is from " & msgfname & " " & msglname & vbCrLf & msgBody & email
myMail.Send
set myMail=nothing
%>
It seems to work, but here is the problem. Every night or even very early in the morning I will receive 3-5 emails that look like this:
From : <contactus@spicetradersteas.com>
Sent : Thursday, September 22, 2005 2:50 AM
To : <spicetradersteas@yahoo.com>
Subject : This is a customer contact email!
this email is from flb@spicetradersteas.com flb@spicetradersteas.com
flb@spicetradersteas.com
flb@spicetradersteas.com
It looks as though all fields are being populated with non-sensical letters & they are always different (the letters) & they are always from spicetradersteas.com ?! And I get like 3 emails all sent at the same time ?! Could this be something with the server? (as it is late night/early morning). Can a server run some sort of update program or something that would process this form automatically? Or is there something wrong with my coding? I have verification restrictions on the forms (though the code above doesn't show it) but I was having this problem before I put the verification parameters in so I know they are not the problem. Please help. I appreciate it in advance.