xcguy87 Posted January 14, 2009 Share Posted January 14, 2009 I have a standard ASP.NET contact form running on my web server. The ASP.NET form posts back to itself and uses Event Validation. Also, all of the recipient email addresses are hard coded into the CS code of the page itself. I have started getting complaints from our hosting service saying that spam is coming through my server, probably though my contact form. Anyone know how this is possible, especially since I should be seeing it since the recipient addresses are hard coded in the code. MailMessage message = new MailMessage(); message.To = "example@example.com"; message.From = varMailFrom; message.Subject = varMailSubject; message.Body = varMailBody; ... Thanks for any help. Link to comment Share on other sites More sharing options...
0 Rohdekill Posted January 17, 2009 Share Posted January 17, 2009 Odds are they are not utilizing your form. They are using their own form and passing directly to your smtp service name. This may help: http://support.microsoft.com/kb/324285 Link to comment Share on other sites More sharing options...
0 xcguy87 Posted January 17, 2009 Author Share Posted January 17, 2009 Odds are they are not utilizing your form. They are using their own form and passing directly to your smtp service name.This may help: http://support.microsoft.com/kb/324285 I have my SMTP service requiring authentication for SMTP relay for all remote connections. If the service was not relaying I would see the messages in one of my mailbox queues. The only time SMTP is not requiring authentication is when it receives a request on the loopback address. Is it possible they can send an email through my form if I have the "To" address hard coded?? Thanks for the article, but I'm actually using MailEnable SMTP. Link to comment Share on other sites More sharing options...
0 Antaris Veteran Posted January 17, 2009 Veteran Share Posted January 17, 2009 Can you add a capatcha to your contact form? Link to comment Share on other sites More sharing options...
Question
xcguy87
I have a standard ASP.NET contact form running on my web server.
The ASP.NET form posts back to itself and uses Event Validation.
Also, all of the recipient email addresses are hard coded into the CS
code of the page itself.
I have started getting complaints from our hosting service saying that
spam is coming through my server, probably though my contact form.
Anyone know how this is possible, especially since I should be seeing it
since the recipient addresses are hard coded in the code.
Thanks for any help.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts