Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C Programming Language

email address verification program


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.

akhilesh.no@gmail.com wrote:
> 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.

--
Ian Collins.

akhilesh.no@gmail.com wrote:
> 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 ...

--
"The path to the web becomes deeper and wider."               - October Project

Hewlett-Packard Limited     Cain Road, Bracknell,                registered no:
registered office:          Berks RG12 1HN                       690597 England

On 31 May, 09:54, "akhilesh.no@gmail.com"

<akhilesh.no@gmail.com> wrote:
> 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".

In article <1180603984.054042.5@o5g2000hsb.googlegroups.com>,

 <k@bytebrothers.co.uk> wrote:
>On 31 May, 09:54, "akhilesh.no@gmail.com"
><akhilesh.no@gmail.com> wrote:
>> I am trying to write a program that can verify an email address
>> without sending mail to it.
>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...

--
  "law -- it's a commodity"
                         -- Andrew Ryan (The Globe and Mail, 2005/11/26)

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc