getSendStatistics() 공개 메소드

See http://docs.amazonwebservices.com/ses/latest/APIReference/API_GetSendStatistics.html
public getSendStatistics ( ) : array
리턴 array An array of activity statistics. Each array item covers a 15-minute period.
예제 #1
0
파일: test.php 프로젝트: ohjack/newErp
error_reporting(E_ALL);
require_once 'SimpleEmailService.php';
require_once 'SimpleEmailServiceRequest.php';
require_once 'SimpleEmailServiceMessage.php';
$ses = new SimpleEmailService('AKIAJPVRUB4LGXGH3TIA', 'KnbZBhbold1tmaKXJTQWkojbN/U0Ui90LmzNb/VW');
// print_r($ses->verifyEmailAddress('*****@*****.**'));
$m = new SimpleEmailServiceMessage();
$m->addTo('*****@*****.**');
//收件人
// $m->addCC(array('*****@*****.**','*****@*****.**')); //抄送 收件人
// $m->addBCC('*****@*****.**'); //密送 收件人
$m->setFrom('*****@*****.**');
//发件人
$m->setSubject('Hello, world!');
// 邮件标题
$m->setMessageFromString(NULL, '<b>This is the message body.<b><br/><font color="red">gyj</font>');
//内容
//设置标题和内容编码
$m->setSubjectCharset('UTF-8');
$m->setMessageCharset('UTF-8');
//print_r($ses->sendEmail($m)); //发送邮件结果
print_r($ses->getSendQuota());
//摘要统计
print_r($ses->getSendStatistics());
//发送统计
//发邮件 base 64编码,针对中文
function address_encode($str)
{
    return '=?UTF-8?B?' . base64_encode($str) . '?=';
}