Hey guys (& gals),
I'm having a small and very annoying problem with emails sent from the System.Net.Mail.SMTPClient object on one of my pages. I have a very simple script that sends an email when the contact page is filled out and submitted. Some validation for postback not much else (all is working so far).
Here's the problem; When the form is filled out and submitted, an email is sent to the correct email address with all the fields filled out. Also, a second email is sent at that exact moment that has with blank fields. The problem is the second email. It should not be sent out, and the form is not even filled out in that email.
I set my SMTP details in my web.config file, not the page coding. The hosting is not set to forward emails. The page is set to send directly to the receiving email address and use the global configuration to find the SMTP server.
It's a basic problem, probably a very simple solution. Any ideas?
I'm having a small and very annoying problem with emails sent from the System.Net.Mail.SMTPClient object on one of my pages. I have a very simple script that sends an email when the contact page is filled out and submitted. Some validation for postback not much else (all is working so far).
Here's the problem; When the form is filled out and submitted, an email is sent to the correct email address with all the fields filled out. Also, a second email is sent at that exact moment that has with blank fields. The problem is the second email. It should not be sent out, and the form is not even filled out in that email.
I set my SMTP details in my web.config file, not the page coding. The hosting is not set to forward emails. The page is set to send directly to the receiving email address and use the global configuration to find the SMTP server.
It's a basic problem, probably a very simple solution. Any ideas?