NAME

Catalyst::Plugin::Mail::Sender - Send emails with Catalyst

SYNOPSIS

use Catalyst 'Mail::Sender';

DESCRIPTION

Send emails with Catalyst and Mail::Sender.

CONFIGURATION

config accepts the same options as Mail::Sender.

__PACKAGE__->config->{mailsender} = { from => "Thiago Rondon <tbr\@examplennn.com.br>", smtp => "mail.examplennn.com.br", auth => 'LOGIN', authid => "tbr\@examplennn.com.br", authpwd => "password", headers => "MIME-Version: 1.0\r\nContent-type: text/html\r\nContent-Transfer-Encoding: 7bit", debug => "/var/tmp/mail.sender.debug" };

METHODS

mailsender() is MailMsg() shortcut of Mail::Sender to a simple message.

$c->mailsender({ to => "to@examplennn.com.br", subject => "Plugin Mail::Sender", msg => "Hello", });

SEE ALSO

Catalyst, Mail::Sender,

AUTHOR

Thiago Berlitz Rondon, thiago@aware.com.br

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.