[Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread Kutbuddin Doctor
I am looking for an example of how to configure catalyst to use postfix on localhost to send email (mostly application notifications) via catalyst. And especially example code from someone who has done this successfully. I have seen several recommendations for using Email::Sender with

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread will trillich
You're probably overthinking this. :) Whether it's postfix or exim or any other daemon really shouldn't matter. Your code will connect to SMTP server localhost on port 25. If you can send an email from the command line (via 'mutt' or 'mail' etc) then you should be ready to go: First $

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread Dave Rolsky
On Mon, 21 Mar 2011, Kutbuddin Doctor wrote: I am looking for an example of how to configure catalyst to use postfix on localhost to send email (mostly application notifications) via catalyst. And especially example code from someone who has done this successfully. I have seen several

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread Charlie Garrison
Good morning, On 21/03/11 at 11:17 AM -0700, Kutbuddin Doctor ksdoc...@sanfordburnham.org wrote: All of the Transport examples are either SMTP or sendmail. Postfix is sendmail compatibile as far as injecting into the local mail queue. All distros I've seen for postfix will replace

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread John M. Dlugosz
On 3/21/2011 1:37 PM, will trillich will.trillich-at-serensoft.com |Catalyst/Allow to home| wrote: $c-stash-{*email*} = { from = $c-config-{email_from}, 'reply-to' = $c-user-email_name, to = $c-user-email_name, cc = join(',', @cc), subject=

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread Andrew Rodland
On Monday, March 21, 2011 08:56:55 PM John M. Dlugosz wrote: On 3/21/2011 1:37 PM, will trillich will.trillich-at-serensoft.com |Catalyst/Allow to home| wrote: $c-stash-{*email*} = { from = $c-config-{email_from}, 'reply-to' = $c-user-email_name, to =

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread John M. Dlugosz
On 3/21/2011 4:46 PM, Dave Rolsky autarch-at-urth.org |Catalyst/Allow to home| wrote: Usually, this will be implemented as something that just writes a file to the server's mail queue, without relying on the server actually running. The server will pick it up when it runs, and will handle it

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread John M. Dlugosz
On 3/21/2011 9:07 PM, Andrew Rodland andrew-at-cleverdomain.org |Catalyst/Allow to home| wrote: There doesn't need to be any instead of. The email view doesn't set any response body, so the default view will still run later on by whatever means usually runs it (i.e. RenderView). I thought

Re: [Catalyst] Requesting example code for postfix and Email::Sender

2011-03-21 Thread Andrew Rodland
On Monday, March 21, 2011 09:12:52 PM John M. Dlugosz wrote: On 3/21/2011 4:46 PM, Dave Rolsky autarch-at-urth.org |Catalyst/Allow to home| wrote: Usually, this will be implemented as something that just writes a file to the server's mail queue, without relying on the server actually