【发布时间】:2014-02-07 17:45:49
【问题描述】:
有什么方法可以包含 mandrill 的参数 i html 部分?
我没有使用模板。
这是我的代码。
$mandrill = new Mandrill('YOUR_API_KEY');
$message = array(
'html' => '<p>here is my email</p>',
'text' => 'Example text content',
'subject' => 'example subject',
'from_email' => 'message.from_email@example.com',
'from_name' => 'Example Name',
'to' => array(
array(
'email' => 'recipient.email@example.com',
'name' => 'Recipient Name',
'type' => 'to'
),
array(
'email' => 'recipient.email@example.com',
'name' => 'Recipient Name',
'type' => 'to'
)
),
我要做的是在html内容中添加一个参数。
'html' => '<p>here is my email{ param}</p>', // this line
我该怎么做?
谢谢
【问题讨论】:
标签: mandrill