Hi everyone,
On Mar 10, 1:26 pm, paulo_graca <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm reimplementing a class to send emails (Symfony 1.1). And I'm
> trying to use postExecute to fetch the template result and to send an
> email.
> How can I fetch the template result for my action?
>
> I call myaction in another action trough:
> $this->getController()->getPresentationFor('mail', 'myaction');
in the other action you will get the template result from the
getPresentationFor method and if you use sfMail as second parameter
and set $this->mail instead of $this->mailObj in your action it should
be send automatically (no need for $this->mail->send() in your action.
florian beyerlein
p.s.: at least I think so...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---