Do you know where your variables are? | |
PerlMonks |
Re: Sendmail to non-working email addressby blue_cowdawg (Monsignor) |
on Sep 04, 2003 at 17:14 UTC ( [id://288927]=note: print w/replies, xml ) | Need Help?? |
Having solved this issue a time or three let me share some thoughts with you: Is this address valid?First off consider looking at Email::Valid. This module will do two things for you. First it will check to see if the address is well formed. Seondly it checks to see if there is a mail server for the domain part. Example:
With that information in hand I can go to the next step in validating this user's email address. But do they have a valid account at that address?Here is here I get really clever. (well... maybe not that clever..) First some assumptions:
Now you have validated that the email address is valid AND you have validated that it exists... Like it? There is more than one way to do this, but this is one of them.
In Section
Seekers of Perl Wisdom
|
|