Email::Sender::Transport::Redirect::Recipients - handle email address redirect replacements
This is a class used internally by Email::Sender::Transport::Redirect and shouldn't be used directly.
my $rec = Email::Sender::Transport::Redirect::Recipients->new($string_or_hashref); print $rec->to; print Dumper($rec->exclude); print $rec->replace('myemail@example');
Either a single email as string, or an hashref which are used to initialize the accessors (see above). If a string is provided, then just to will be set and no exclusions are set.
to
The main, required email address to use as a redirect.
An arrayref of emails or wildcard expressions. E.g.
[ 'mail@example.org', '*@example.org', 'racke@*' ]
These emails will not get redirected.
Main method. When a string is passed, it's checked against the exclusion list. If there is a match, the address passed as argument will be returned, otherwise the to address set in the object will be returned.
To install Email::Sender::Transport::Redirect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Sender::Transport::Redirect
CPAN shell
perl -MCPAN -e shell install Email::Sender::Transport::Redirect
For more information on module installation, please visit the detailed CPAN module installation guide.