[dancer-users] Email + template toolkit

Hugues hugues at max4mail.com
Thu Mar 3 08:49:46 GMT 2016


Thanks  Racke and Dan
this is exactly what I'm looking for
bye
Hugues.

Le 02/03/2016 19:34, Stefan Hornburg (Racke) a écrit :
> On 03/02/2016 07:00 PM, Hugues wrote:
>> Hello
>> I'm using Dancer + Dancer::Plugin::Email
>>
>> Do you know if it's possible to send a email using template with template toolkit ?
>> and passe variable to this template ?
>> thanks
>> Hugues.
> You can simply assign the output of the template call to a variable and use that
> in the email call, e.g.:
>
> https://github.com/interchange/Perl-Dancer-Conference/blob/master/lib/PerlDance/Routes.pm#L310
>
> Regards
>          Racke
>
>



More information about the dancer-users mailing list