NAME
MooseX::Types::Email - Email address validation type constraints for Moose.
VERSION
version 0.009
SYNOPSIS
package MyClass;use Moose;use MooseX::Types::Email qw/EmailAddress EmailMessage EmailAddresses EmailMessages/;use namespace::autoclean;has email => ( isa => EmailAddress, required => 1, is => 'ro' );has message => ( isa => EmailMessage, required => 1, is => 'ro' );has emails => ( isa => EmailAddresses, required => 1, is => 'ro' );has messages => ( isa => EmailMessages, required => 1, is => 'ro' );
DESCRIPTION
Moose type constraints which uses Email::Valid and Email::Abstract to check for valid email addresses and messages. Types that support both single items and an arrayref of items are available.
Note that "EmailMessage" must be an object that can be passed to Email::Abstract. Currently, constraining strings is not supported due to the leniency of Email::Abstract.
SEE ALSO
- Moose::Util::TypeConstraints
- MooseX::Types
- Email::Valid
- Email::Abstract
ORIGIN
Shamelessly extracted from Reaction::Types::Email.
ACKNOWLEDGEMENTS
Chris Nehren "<[email protected]>" added support for validating email messages.
Karen Etheridge "<[email protected]>" added support for lists of email addresses and messages.
SUPPORT
Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-Email> (or [email protected] <mailto:[email protected]>).
There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>.
There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
AUTHOR
Tomas Doran (t0m) <[email protected]
CONTRIBUTORS
- •
-
Karen Etheridge <[email protected]>
- •
-
Tomas Doran (t0m) <[email protected]>
- •
-
Alexander Hartmaier <[email protected]>
- •
-
Chris Nehren <[email protected]>
- •
-
Gregory Oschwald <[email protected]>
COPYRIGHT AND LICENCE
This software is copyright (c) 2009 by Tomas Doran (t0m).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.