validate an email address
-
how can I validate if the email address provided by the user does exists or not before proceeding to send an email using SmtpClient?
-
how can I validate if the email address provided by the user does exists or not before proceeding to send an email using SmtpClient?
jrahma wrote:
before proceeding to send an email using SmtpClient
You can not!!!
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
jrahma wrote:
before proceeding to send an email using SmtpClient
You can not!!!
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
so you mean there is not way to send whatever call or (ping!) to the email to verify if the email was correct or it's just a fake email?
-
so you mean there is not way to send whatever call or (ping!) to the email to verify if the email was correct or it's just a fake email?
Untill and unless you do not send the email, you can not. But, why would you do this? This is usually done by spammers to get hold of actual email addresses :doh:
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Untill and unless you do not send the email, you can not. But, why would you do this? This is usually done by spammers to get hold of actual email addresses :doh:
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
because I have a feedback form and I want to make sure the email was correct in order to reply yo the user and to avoid people sending me junk emails using fake addresses.. so what's the solution?
-
because I have a feedback form and I want to make sure the email was correct in order to reply yo the user and to avoid people sending me junk emails using fake addresses.. so what's the solution?
jrahma wrote:
so what's the solution?
If you can come up with a reliable method to do this, you'll become very, very rich. There's currently no foolproof way to do this.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
because I have a feedback form and I want to make sure the email was correct in order to reply yo the user and to avoid people sending me junk emails using fake addresses.. so what's the solution?
As he has been saying there is no way to verify an email address is valid unless you send a message. Most applications rely on the user to provide a correct email and warn them if the email is not correct they will not get any messages. Other ways to eliminate potential fake emails is to send a confirmation and only active the email if the user responds. You can remove any email addresses that have not been responded to in a certain time period.
only two letters away from being an asset
-
because I have a feedback form and I want to make sure the email was correct in order to reply yo the user and to avoid people sending me junk emails using fake addresses.. so what's the solution?
IIRC (it was a long time ago) the best I was ever able to come up with was to validate the email address with regex and do a look up for the MX records of the domain of the email address. This won't ensure the email address exists - daveym69[at]microsoft.com would pass (don't want spam bots hitting MS mail servers hence the [at]!), but at least you know it's properly formed and the domain actually has a mail server.
Dave
Generic BackgroundWorker - My latest article!
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
how can I validate if the email address provided by the user does exists or not before proceeding to send an email using SmtpClient?
-
because I have a feedback form and I want to make sure the email was correct in order to reply yo the user and to avoid people sending me junk emails using fake addresses.. so what's the solution?
Hi there, Have a look into CAPTCHA's. If you don't like this, another option to add a hidden textbox. Spam bots will generally fill in every box on the page (hidden or not) and then submit the form. All you have to do is check that the hidden box is empty - if not, it is a non-human user. Cheers,
Mark Brock "We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen