How to check if email exist?

Mar 26, 2012 at 6:45 PM

Hello,

as subject, How to check if email exist on a mailserver?

Thank you.

Mar 27, 2012 at 11:22 AM
Edited Mar 27, 2012 at 11:27 AM

ActiveUp.Net.Mail.SmtpValidator.Validate("me@example.com")

I've been trying this for the past couple of days and most of my addresses return False.

 

Mar 27, 2012 at 11:38 AM

Hi ZippyV,

yes that's true, the ActiveUp.Net.Mail.SmtpValidator.Validate("me@example.com") does not work but i've been able to check the emails sending rcpt to commands and it works!!


Nov 6, 2012 at 2:48 PM

Hi evald80

Could you please show us how to do that with rcpt and commands? 

Nov 6, 2012 at 3:09 PM

Jafet,

try to send a Rcpto command. If the response is "250 recipient ok" than it means the email exist otherwise does not,

Best regards

Dec 11, 2012 at 8:48 PM
evald80 wrote:

Jafet,

try to send a Rcpto command. If the response is "250 recipient ok" than it means the email exist otherwise does not,

Best regards

Hi evald80,

sorry for the late response, I was in comma and just wake up, and I'm back to work. anyways.

Is it possible for you to post an example on how to send the Rcpto command? I mean like a c# code snippet.

Mar 18, 2013 at 11:09 PM
I found this library for verifying email addresses in .net:
http://www.kellermansoftware.com/p-37-net-email-validation.aspx
Aug 27, 2013 at 6:19 AM
Hello,

I test existence of email via MessageId, If mail exist we get some like afae6584688468afeaf2@gmail.com. By controlling we get a index of this meesage or zero.


Jan
            int index = 0;
                        
            Mailbox inbox = client.SelectMailbox(EmailInboxFolder);
            ThrowIfMailBoxMissing(inbox, EmailInboxFolder);
            
            MessageCollection messages = inbox.SearchParse(searchPhrase);
            foreach (ActiveUp.Net.Mail.Message msg in messages)
            {
                index++;
                if (msg.MessageId == messageId)
                {
                    return index;
                }
            }
            return 0;
Sep 2, 2013 at 8:42 AM
Edited Sep 2, 2013 at 8:43 AM
Hi ;
I have been reading RFCs for some hours , and i Think the RcptTo command does not provide a checking logic , in fact , servers actually would accept any address and then would try to 'transfert' it as it is, especially if the receiving address is not in the same domain ; the actual servers implementations or most of them will send you a notification that the address was not valid or does not exist at all.