On 27/06/2011 21:46, Marc <sono...@fannullone.us> wrote:
On Jun 27, 2011, at 1:27 PM, Bob McConnell wrote:
The problem with this is that, due to the spam plague, most servers will
no longer tell you if an address is valid. Many do not even return a
bounce message, but silently discard any and all mail for unknown
addresses.
Good points. I'm so used to Perl doing what I tell it to do that I
wasn't thinking about that. =;) So what about just checking the MX
record for a domain? Let's say someone entered x...@yagoo.com instead of
x...@yahoo.com. Is that catchable or would there be problems with that as
well?
If this is for an internet shopping cart, then don't forget that, as
well as checking that an entered email address has a valid syntax and is
a real and active email account, you need to check for fraudulent entries.
Even if an email address is valid and real, there is nothing to stop
someone creating an account or placing an order with someone else's
address. That is why all internet ordering systems send a confirmation
request to the address, which must be responded to to establish that the
the request was genuine.
Since a confirmation email also tests that the address is valid and
real, no other test is required (although it would make sense to ensure
that the address at least /looked/ like a valid email before using it to
send a confirmation request).
HTH,
Rob
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/