Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Development Space for new Zend_Service_Amazon_Ses component

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 library
Octocat-spinner-32 tests
Octocat-spinner-32 README
README
Zend_Service_Amazon_Ses

Incubator for development of a new Zend Framework Simple Email Services component.

The provided code implements all the Actions oulined on the official AWS SES documentation page:
http://docs.amazonwebservices.com/ses/latest/APIReference/

Usage:

Globally Set Credentials
=======================
Zend_Service_Amazon_Ses::setKeys('aws-key', 'aws-secret-key');


SendEmail:
========================
$email = new Zend_Service_Amazon_Ses_Email();
$email->addTo('recipient@example.com')
    ->setFrom('from-address@example.com', 'My Name')
    ->setSubject('Subject')
    ->setReturnPath('return-path-address@example.com')
    ->setBodyText('Text part of email')
    ->setBodyHtml('<b>Html part of email!</b>');

$ses = new Zend_Service_Amazon_Ses();
$messageId = $ses->sendEmail($email);


SendRawEmail:
========================
$ses = new Zend_Service_Amazon_Ses();
$messageId = $ses->setRawEmail('...full email text with headers...');


Delete Verified Email:
=======================
$ses = new Zend_Service_Amazon_Ses();
$ses->deleteVerifiedEmailAddress('email-address@example.com');


List Verified Email Addresses
======================
$ses = new Zend_Service_Amazon_Ses();
$addresses = $ses->listVerifiedEmailAddresses();


Get Quota Information
=====================
$ses = new Zend_Service_Amazon_Ses();
$quotaArray = $ses->getSendQuota();


Verify Email Address
=====================
$ses = new Zend_Service_Amazon_Ses();
$ses->verifyEmailAddress();


Use included Mail Transport
====================
$ses = new Zend_Service_Amazon_Ses();
$transport = new Zend_Mail_Transport_AmazonSes($ses);

Something went wrong with that request. Please try again.