Email::Sender::Transport::Wrapper - a mailer to wrap a mailer for mailing mail


Email-Sender documentation Contained in the Email-Sender distribution.

Index


Code Index:

NAME

Top

Email::Sender::Transport::Wrapper - a mailer to wrap a mailer for mailing mail

VERSION

Top

version 0.110001

DESCRIPTION

Top

Email::Sender::Transport::Wrapper wraps a transport, provided as the transport argument to the constructor. It is provided as a simple way to use method modifiers to create wrapping classes.

AUTHOR

Top

Ricardo Signes <rjbs@cpan.org>

COPYRIGHT AND LICENSE

Top


Email-Sender documentation Contained in the Email-Sender distribution.

package Email::Sender::Transport::Wrapper;
BEGIN {
  $Email::Sender::Transport::Wrapper::VERSION = '0.110001';
}
use Moose;
with 'Email::Sender::Transport';
# ABSTRACT: a mailer to wrap a mailer for mailing mail


has transport => (
  is   => 'ro',
  does => 'Email::Sender::Transport',
  required => 1,
);

sub send_email {
  my $self = shift;

  $self->transport->send_email(@_);
}

__PACKAGE__->meta->make_immutable;
no Moose;
1;

__END__