[英]Add PHP variables to Mandrill template
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: 我刚刚从PHP邮件功能切换到Mandrill,但Mandrill将电子邮件中的PHP视为HTML,并打印如下变量:
Does anyone know how to add PHP to the HTML template? 有人知道如何将PHP添加到HTML模板吗?
Definity you can use PHP variable with template,same issue i was facing, Definity您可以将PHP变量与模板一起使用,我遇到的同样问题,
by using below statement,you can pass PHP code 通过使用以下语句,您可以传递PHP代码
<div mc:edit="main_content"></div>
Your code will be look like that 您的代码将如下所示
<div mc:edit="main_content">
$title=$occasion
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.