NAME

Peace::Email - The mail sender module for Peace.

SYNOPSIS

my $mailer = Peace::Email->new;

$mailer->sendmail(
  to      => 'larry@perl,org',
  text    => 'hola',
  html    => '<b>hola</b>',
  subject => 'Patch',
);

DESCRIPTION

Peace::Email reads the Peace config to determine the credentials to send mail and does an abstraction around those.

INSTANCE METHODS

Peace::Email implements the following instance methods:

new

my $mailer = Peace::Email->new;

Instances a new mailer.

METHODS

Peace::Email implements the following methods:

sendmail

$mailer->sendmail(
   to      => 'larry@perl,org',
   text    => 'hola',
   html    => '<b>hola</b>',
   subject => 'Patch',
);

Sends a mail to the given mail address.

SEE ALSO

Peace