[TYPO3-mvc] Proper way to send a fluid-templated email

Jonas Götze jonnsn at gmail.com
Fri Jun 11 10:20:33 CEST 2010


Hi Sebastian,

Am 11.06.2010 09:04, schrieb Sebastian Michaelsen:
> Hi,
>
> I have an action that needs to send 2 mails (admin and user) and
> produces Frontend output like "Thanks, you received a mail".
>
> For the Frontend output I have a template at the default location.
>
> Currently the mail contents are hardcoded in my controller, but I want
> to extract them to a fluid template.
>
> Is there a proper way to invoke more than one template in my action
> controller or should I create new actions like
> $userMailContent = $this->getUserMailContentAction()?
>
> Any suggestions for a best practice solution?
>
> Thanks in advance,
> Sebastian

I think this [1] (page 39) could help you (these are german slides) - as 
described there you can call Fluid manually and use the result in your 
Controller - send it via mail for example.

Regards
Jonas


[1] http://www.slideshare.net/plobacher/typo3camp-2009-einfhrung-in-fluid


More information about the TYPO3-project-typo3v4mvc mailing list