There were threads on this recently, I posted config, Perl and tt. There are a few gotchas but it is quite do-able. What error do you see?
http://lists.preshweb.co.uk/pipermail/dancer-users/2016-January/005429.html http://lists.preshweb.co.uk/pipermail/dancer-users/2016-January/005448.html cheers -- Rick > I am trying to send an email as HTML using HTML template. Does anybody know > that how can I use HTML template (that resides in view directory) as email > body? So far I tried the following code but am not able to get it working. > It may be not the right way of doing it. > > try { > email { > from => '[email protected]', > to => '[email protected]', > subject => 'test email', > body => template 'contactUsEmail.tt', {name => $params->{'name'}, > email => $params->email'}, message => $params->{'message'}}, > type => 'html' > }; >
_______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
