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
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to