getSendQuota() public méthode

See http://docs.amazonwebservices.com/ses/latest/APIReference/API_GetSendQuota.html
public getSendQuota ( ) : array
Résultat array An array containing information on this account's activity limits.
Exemple #1
0
/includes/app/create.php" method="POST" accept-charset="utf-8" class="form-vertical" id="settings-form">

<div class="row-fluid">
	<div class="span2">
		<h3><?php 
echo _('Amazon SES Quota');
?>
</h3><br/>
		<div class="well">
			<?php 
if (get_app_info('s3_key') == '' && get_app_info('s3_secret') == '') {
} else {
    require_once 'includes/helpers/ses.php';
    $ses = new SimpleEmailService(get_app_info('s3_key'), get_app_info('s3_secret'));
    $quoteArray = array();
    foreach ($ses->getSendQuota() as $quota) {
        array_push($quoteArray, $quota);
    }
}
?>
			<?php 
if (get_app_info('s3_key') == '' && get_app_info('s3_secret') == '') {
    ?>
			<p><strong><?php 
    echo _('Amazon SES is not set up as we can\'t find your AWS credentials in');
    ?>
 <a href="<?php 
    echo get_app_info('path');
    ?>
/settings" style="text-decoration: underline"><?php 
    echo _('settings');
Exemple #2
0
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) . '?=';
}