forked from NicholasMiller/Zend_Servce_Amazon_Ses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
63 lines (43 loc) · 1.59 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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('[email protected]')
->setFrom('[email protected]', 'My Name')
->setSubject('Subject')
->setReturnPath('[email protected]')
->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 protected]');
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);