Question

I just made the switch from the PHP mail function to Mandrill, but Mandrill sees the PHP in the email as HTML and prints the variables like this:

enter image description here

Does anyone know how to add PHP to the HTML template?

Was it helpful?

Solution

Doesn't look like you can use PHP with Mandrill, but you can use placeholders for custom content. Please take a look at the section of this page titled "Create dynamic content (placeholders for custom content)"

OTHER TIPS

Definity you can use PHP variable with template,same issue i was facing,

by using below statement,you can pass PHP code

<div mc:edit="main_content"></div>

Your code will be look like that

<div mc:edit="main_content">
  $title=$occasion

</div>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top