php – Mandrill回复
发布时间:2020-12-13 22:11:02 所属栏目:PHP教程 来源:网络整理
导读:今天我注册了Mandrill帐户,了解它是如何工作的. This is my PHP code发送简单邮件: ?php$apikey = 'API_KEY_HERE';require_once 'Mandrill.php';$mandrill = new Mandrill($apikey);$message = new stdClass();$message-html = "html message";//$message-t
今天我注册了Mandrill帐户,了解它是如何工作的.
This is my PHP code发送简单邮件:
<?php $apikey = 'API_KEY_HERE'; require_once 'Mandrill.php'; $mandrill = new Mandrill($apikey); $message = new stdClass(); $message->html = "html message"; //$message->text = "text body"; $message->subject = "email subject"; $message->from_email = "from@email.com"; $message->from_name = "My App Name"; $message->to = array(array("email" => "recipient@email.com")); $message->track_opens = true; $response = $mandrill->messages->send($message); var_dump($response); ?> 该脚本使用this Bitbucket repo. 我想知道如何在脚本中插入回复电子邮件地址变量.什么是变量名称?我正在看docs page,但我被困了. 我是PHP的新手.我非常感谢你的帮助.提前致谢! 解决方法
好.我找到了.
$message->headers = array('Reply-To' => 'another@email.com'); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |