change mandrill template dynamically using php -


i using mandrill app send emails website. know how send template using mandrill.

i want change template dynamically. don't know how it. on site mentioned use |---| change template dynamically. here aso mentioned how declare global merge vars in json code.

my question how define global merge vars in php code?

probably misunderstood question, here answer: assume using mandrill php library then

require 'mandrill.php'; $mandrill = new mandrill($password); $message = array(      'html' => $html //here can provide html template      //receiver , on ); $mandrill->messages->send($message); 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -