码迷,mamicode.com
首页 > 其他好文 > 详细

2 发送邮件

时间:2017-06-06 18:53:51      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:cti   ack   email   UI   from   spec   ges   com   res   

function send_email($to_email, $subject, $message1)
{
  require_once ‘Mandrill.php‘;
  $apikey = ‘XXXXXXXXXX‘; //specify your api key here
  $mandrill = new Mandrill($apikey);

  $message = new stdClass();
  $message->html = $message1;
  $message->text = $message1;
  $message->subject = $subject;
  $message->from_email = "blog@koonk.com"; //Sender Email
  $message->from_name = "KOONK"; //Sender Name
  $message->to = array(array("email" => $to_email));
  $message->track_opens = true;

  $response = $mandrill->messages->send($message);
}

2 发送邮件

标签:cti   ack   email   UI   from   spec   ges   com   res   

原文地址:http://www.cnblogs.com/xin-jun/p/6952595.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!