[Catalyst] Requesting example code for postfix and Email::Sender
Andrew Rodland
andrew at cleverdomain.org
Tue Mar 22 02:07:34 GMT 2011
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 => $c->user->email_name,
> > cc => join(',', @cc),
> > subject => $subj,
> > body => $message,
> >
> > };
> > $c->forward( $c->view('Email') );
>
> I didn't like that one (the mail view) because I don't follow: if your
> function sends email instead of generating a web page, what happens to the
> UA on the other end of the network who triggered that URL?
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).
Andrew
More information about the Catalyst
mailing list