0

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?

Austin Mullins
  • 7,307
  • 2
  • 33
  • 48
Christian
  • 735
  • 3
  • 10
  • 29

2 Answers2

1

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)"

  • Woohoo! Thanks a million Daniel. I'm not sure I would have found that without you - I was looking in the wrong places. – Christian Jul 01 '13 at 02:08
0

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>
Urdesh Kumar
  • 1,120
  • 1
  • 17
  • 23