email address verification program

A

akhilesh.noida

I am trying to write a program that can verify an email address
without sending mail to it.

any hint/clue will be quite useful to me.
 
C

Chris Dollin

I am trying to write a program that can verify an email address
without sending mail to it.

You'll have to decide what you mean by "verify", then. If it's
just syntax, pick a suitable regular expression. If the address
has to "exist", you'll have to build some kind of table of
known addresses and use something like a hash table or search
tree to see if the address you have is one of those.

These techniques are not specific to C; if you want to use them
in C you'll either have to write code for them (questions about
which are topical) or find libraries (topicality of which will
depend on how you ask and the attitudes of the responders).
any hint/clue will be quite useful to me.

Explaining the wider context of your problem will often help
us to give useful answers. Must you write this in C, or would
a shell or Ruby [1] script be OK? Is this an exercise, homework,
or real code? If C, must it be portable or need it work only
on your local system? Are you going to spam the verified addresses
or just check that users have identified themselves sensibly?

Most Recent Repeated Enlightenment: don't fight the tide. Every
programming language & framework has its own oceanography.

[1] Or Perl or Python or ...
 
I

Ian Collins

I am trying to write a program that can verify an email address
without sending mail to it.

any hint/clue will be quite useful to me.
This certainly isn't the place to ask.
 
K

keith

I am trying to write a program that can verify an email address
without sending mail to it.

any hint/clue will be quite useful to me.

This is most certainly not the correct group for your question. For
one possible solution, check out the Perl module Email::Valid at:
http://search.cpan.org/~rjbs/Email-Valid-0.179/lib/Email/Valid.pm

"This module determines whether an email address is well-formed, and
optionally, whether a mail host exists for the domain. Please note
that there is no way to determine whether an address is deliverable
without attempting delivery".
 
W

Walter Roberson

check out the Perl module Email::Valid
"This module determines whether an email address is well-formed, and
optionally, whether a mail host exists for the domain. Please note
that there is no way to determine whether an address is deliverable
without attempting delivery".

Even attempting delivery will not reliably tell you whether the
address is deliverable: I have encountered a fair number of systems
that will accept email for any address apparently in their domain,
returning bounce messages for the undeliverable ones. Or just throwing
away the undeliverable ones. Or doing fuzzy pattern matching on
the address and delivering to the best match...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top