[Catalyst] Sending Email from Page?

Bill Moseley moseley at hank.org
Mon Mar 21 16:47:22 GMT 2011


On Sun, Mar 20, 2011 at 11:48 PM, Octavian Rasnita <orasnita at gmail.com>wrot=
e:

> From: "John M. Dlugosz" <wxju46gefd at snkmail.com>
>
>  Any pointers as to the right (or best) way to send an email from my
>> Catalyst App?
>> I see there is a Plugin::Email and also a View::Email, which seems to be
>> something totally different?
>>
>
> You can use any of them or Catalyst::Helper::Model::Email. The plugin is =
no
> longer recommended.
>
> The most simple way is not the best. The best way is to send the messages
> in a job queue and let the worker module to send the message immediately =
or
> whenever the mail server is free.
>

That's good advice in general.  But, in a lot of ways mail, using a local
MTA, fits that role.



> If you send the message directly from your application, in that moment the
> server might not be free and the user would need to wait too much until t=
he
> message is sent, or the mail server might give a timeout and in that case
> the message is lost because the application doesn't send it again when the
> mail server is free.
>  Octavian
>
>
>
> _______________________________________________
> List: Catalyst at 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/
>



-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110321/7f621=
26a/attachment.htm


More information about the Catalyst mailing list