khanlou / MandrillTransport-CakePHP

This enables using CakeEmail from CakePHP 2.0 with Mandrill.
MIT License
19 stars 15 forks source link

Templates and Merge Vars #1

Closed DuncanLewis closed 10 years ago

DuncanLewis commented 10 years ago

Hey there,

I'm wondering how I would go about specifying mandrill specific options when sending my email, for example templates from Mandrill and Merge Vars?

I have tried specifying

$email->template('new-account'); 

and also

$email->config(array(
    'template' => 'new-account'
));

which is a Mandrill template I have, but Cake throws an error saying it cannot find the template file.

Also not sure on how to configure merge vars, for example I want to specify a variable for |USERNAME| which I have in my template. I see how to do this with the Mandrill API, but not entirely sure on the process with MandrillTransport for Cake.

Thanks for your your work, this plugin has saved me a lot of time!

Duncan