【发布时间】:2017-01-16 05:13:56
【问题描述】:
我正在使用 mandrill 发送电子邮件,并遵循此处的指南:
https://mandrill.zendesk.com/hc/en-us/articles/205582147-How-to-Send-with-PHPMailer
$mail->Host = 'smtp.mandrillapp.com'; // Specify main and backup server
$mail->Port = 587; // Set the SMTP port
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'MANDRILL_USERNAME'; // SMTP username
$mail->Password = 'MANDRILL_APIKEY'; // SMTP password
$mail->SMTPSecure = 'tls';
...并发送电子邮件
但是,API 中有一个标签选项, 我想添加标签来跟踪电子邮件:
https://mandrillapp.com/api/docs/messages.php.html
'tags' => array('password-resets')
问题是,我可以在不包含 API 文件的情况下添加标签吗?在phpmailer的头部添加标签?
非常感谢您的帮助
【问题讨论】:
标签: php email header smtp mailchimp