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

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to