0

I am using mandrill app to send emails from my website. I know how to send template using Mandrill.

I want to change template dynamically. I don't know how to do it. On this Site they mentioned to use |---| to change template dynamically. Here they aso mentioned how to declare global merge vars in JSON code.

My question is how to define global merge vars in PHP code?

Aakanksha
  • 199
  • 1
  • 3
  • 15

1 Answers1

0

Probably I misunderstood your question, but here is my answer: I assume that you are using mandrill php library Then

require 'Mandrill.php';
$mandrill = new Mandrill($password);
$message = array(
     'html' => $html //here you can provide your html for template
     //receiver and so on
);
$mandrill->messages->send($message);
whyte624
  • 312
  • 1
  • 15
  • Hey thanks I got answer to may question. I wanted to ask how to replace text in template using mandrill PHP. – Aakanksha Oct 08 '13 at 08:39