Amazon SES Transport Class for CakePHP
This is a plugin to send email with CakeEmail using AmazonSES service.
- CakePHP version 2.0 or later.
- Amazon SES account
- AWS SDK for PHP
-
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
$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.');