AW: [Catalyst] Sending E-Mails
Moritz Onken
onken at houseofdesign.de
Thu Oct 2 12:51:39 BST 2008
Am 02.10.2008 um 13:45 schrieb goetz:
>
>
> I use the email plugin:
>
> use Catalyst qw/
> -Debug
> ConfigLoader
> Static::Simple
> StackTrace
> Prototype
> Email
> /;
>
Hi,
try to configure Plugin::Email to use a smtp server:
__PACKAGE__->config->{email} = [
'SMTP',
'smtp.myhost.com',
username => $USERNAME,
password => $PASSWORD,
];
replace smtp.myhost.com with localhost, username and password
can be blank if your smtp server doesnt require auth for local
users.
Furthermore you might want to set the attribute of send_email to
Private and call the method with $self->send_email($c, $params);
Otherwise this method can be called by a request to this
controller via a browser.
Viele Grüße
Moritz
More information about the Catalyst
mailing list