Home How to check if email address exists in real world or not, by sending a request to smtp server in C#
Reply: 0

How to check if email address exists in real world or not, by sending a request to smtp server in C#

user6907
1#
user6907 Published in September 20, 2018, 4:35 pm

I am getting an error in smtp connection when I send a request to stmp server.

IList<MXServer> list = new List<MXServer>();

foreach (string line in result.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
{
    if (line.Contains("MX preference =") && line.Contains("mail exchanger ="))
        {
        MXServer mxServer = new MXServer();
        mxServer.Preference = Int(GetStringBetween(line, "MX preference = ", ","));
        mxServer.MailExchanger = GetStringFrom(line, "mail exchanger = ");

        list.Add(mxServer);
    }
}
share|improve this question
  • 4
    The standard way to do this is, send them an email with a time dependent token and get them to validate it via a web request. Think about it, when is the last time you have filled out a form and it said, sorry thats not your real email address, YOU LIED! – Saruman Feb 14 at 12:03
  • Your implementation should be more around "Verify email address"? Once user provides one. – FaizanRabbani Feb 14 at 12:07

1 Answer 1

active oldest votes
up vote 1 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.321384 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO