On 6/27/11 Mon Jun 27, 2011 12:14 PM, "sono...@fannullone.us" <sono...@fannullone.us> scribbled:
> On Jun 27, 2011, at 12:04 PM, Jim Gibson wrote: > >> 'perldoc -q address' "How do I check a valid mail address?" > > Thanks, Jim, I'm reading that now. However, after glancing at it, I may not > have been clear in what I actually want. I'm looking to see if it's valid as > far as preventing an e-mail from bouncing because of a non-existant account, > bad domain, etc. Yes. That is the problem addressed by the FAQ: "How do I check a valid mail address? (partly contributed by Aaron Sherman) This isn't as simple a question as it sounds. There are two parts: a) How do I verify that an email address is correctly formatted? b) How do I verify that an email address targets a valid recipient? Without sending mail to the address and seeing whether there's a human on the other end to answer you, you cannot fully answer part b, but either the "Email::Valid" or the "RFC::RFC822::Address" module will do both part a and part b as far as you can in real-time." -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/