Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.07 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.07 KB

amazon-ses-transport

Amazon SES Transport Class for CakePHP

This is a plugin to send email with CakeEmail using AmazonSES service.

Requirements

Installation

  • Install AWS SDK for PHP to vendor directory

  • Install AmazonSESTransport to plugin Directory

    cd app/Plugin git clone git://github.com/news2u/amazon-ses-transport.git AmazonSESTransport

Sample Code

$email = new CakeEmail();
$email->config(array(
    'transport' => 'AmazonSESTransport.AmazonSES',
    'log' => true,
    'Amazon.SES.Key' => 'Your AWS Key'
    'Amazon.SES.Secret' => 'Your AWS Secret Key'
));

$email->sender('[email protected]');
$email->from('[email protected]', 'Example');
$email->to('[email protected]');
$email->bcc('[email protected]');
$email->subject('SES Test from CakePHP');

$res = $email->send('test message.');

Author

News2u Corporation