• 0

ASP.NET Contact Form Spam


Question

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

3 answers to this question

Recommended Posts

  • 0
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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.