in reply to sendmail - worried illegal chars
Use Email::Valid for this:
use warnings; use strict; use Email::Valid; my $from_email = 'stevieb <steveb@cpan.org>'; if (! Email::Valid->address($from_email)){ die "that ain't a valid email address!\n"; } ...;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sendmail - worried illegal chars
by atcroft (Abbot) on Apr 05, 2016 at 21:13 UTC | |
by choroba (Cardinal) on Apr 05, 2016 at 21:57 UTC | |
by stevieb (Canon) on Apr 05, 2016 at 22:33 UTC |