Can PERL code check is email of sender is valid?

P

PHP2

Hello,

Can PERL code check is email of sender is valid?

If someone send email from example: (e-mail address removed) PERL code must
check: can (e-mail address removed) receive email (without sending test
email).. if (e-mail address removed) can receive email code inform me about
that..

I need any possible ideas.. :))

thanks,
-GP
 
A

Anno Siegel

PHP2 said:
Hello,

Can PERL code check is email of sender is valid?

If someone send email from example: (e-mail address removed) PERL code must
check: can (e-mail address removed) receive email (without sending test
email).. if (e-mail address removed) can receive email code inform me about
that..

In general, there is no way of knowing if an address is deliverable
except by sending mail there. This has nothing to do with Perl (not
"PERL").

Anno
 
T

Tintin

PHP2 said:
Hello,

Can PERL code check is email of sender is valid?

A more valid question is whether *any* programming language can check the
validity of an email address.
If someone send email from example: (e-mail address removed) PERL code must
check: can (e-mail address removed) receive email (without sending test
email).. if (e-mail address removed) can receive email code inform me about
that..

I need any possible ideas.. :))

Not possible in most cases. You'll need to rethink your requirements.

About the closest you'll get is what's available in Email::Valid

See http://search.cpan.org/~maurice/Email-Valid-0.15/Valid.pm
 
T

Tintin

Tintin said:
A more valid question is whether *any* programming language can check the
validity of an email address.


Not possible in most cases. You'll need to rethink your requirements.

About the closest you'll get is what's available in Email::Valid

See http://search.cpan.org/~maurice/Email-Valid-0.15/Valid.pm

Actually, I should also mention Mail::CheckUser

See http://search.cpan.org/~ilyam/Mail-CheckUser-1.21/CheckUser.pm

In particular, the following paragraph:

In many cases there is no way to detect the validity of email addresses with
network checks. For example, non-monolithic mail servers (such as Postfix
and qmail) often report that a user exists even if it is not so. This is
because in cases where the work of the server is split among many
components, the SMTP server may not know how to check for the existence of a
particular user. Systems like these will reject mail to unknown users, but
they do so after the SMTP conversation. In cases like these, the only
absolutely sure way to determine whether or not a user exists is to actually
send a mail and wait to see if a bounce messages comes back. Obviously, this
is not a workable strategy for this module. Does it mean that the network
checks in this module are useless? No. For one thing, just the DNS checks go
a long way towards weeding out mistyped domain parts. Also, there are still
many SMTP servers that will reject a bad address during the SMTP
conversation. Because of this, it's still a useful part of checking for a
valid email address. And this module was designed such that if there is
exists possibility (however small) that the email address is valid, it will
be treated as valid by this module.
 
S

Sandman

Hello,

Can PERL code check is email of sender is valid?

If someone send email from example: (e-mail address removed) PERL code must
check: can (e-mail address removed) receive email (without sending test
email).. if (e-mail address removed) can receive email code inform me about
that..

I need any possible ideas.. :))

perldoc perlfaq9

How do I check a valid mail address?

You can't, at least, not in real time. Bummer, eh?

Without sending mail to the address and seeing whether
there's a human on the other hand to answer you, you can-
not determine whether a mail address is valid. Even if
you apply the mail header standard, you can have problems,
because there are deliverable addresses that aren't
RFC-822 (the mail header standard) compliant, and
addresses that aren't deliverable which are compliant.
 
P

PHP2

thanks people.. I feel technology reality now.. I'll send new ticket with
another question that can maybe resolve my problem on anothar way..
 
C

Chris Mattern

PHP2 said:
Hello,

Can PERL code check is email of sender is valid?

If someone send email from example: (e-mail address removed) PERL code must
check: can (e-mail address removed) receive email (without sending test
email).. if (e-mail address removed) can receive email code inform me about
that..

I need any possible ideas.. :))
It is not possible to determine whether an arbitrary email address can
receive email. The only way you can get even an approximation is to
try sending it email, but even then the email server may lie to you.
--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 

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
474,148
Messages
2,570,834
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top