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



_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to