[Catalyst] A Perl Message Queue?

Bernhard Graf catalyst2 at augensalat.de
Fri Aug 24 18:55:25 GMT 2007


Hartmaier Alexander wrote:

> So TheSchwartz may be a good module to queue mails by a Catalyst app
> for sending them by let’s say a perl script run by cron (or running
> all the time)?!
>
> At the moment I’m sending the mails directly from my Cat app (SMTP to
> localhost mail daemon) which works flawless (as long as the local MTA
> runs).

Don't know about TheSchwartz (btw. what a stupid name), but MTAs have 
their own message queues, so no need for another one.

SMTPing to localhost usually doesn't make much sence - it is slow and as
you mentioned already it causes trouble when the daemon is down or slow.

So either you want to do queueing overhead, dns resolving and SMTPing to
the *remote* host yourself or you simply open(MAILER,"|sendmail @args").
-- 
Bernhard Graf



More information about the Catalyst mailing list