Skip to content

GodStorm91/fuel-amazon-ses

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Buy us a tree

Amazon Simple Email Service (SES)

Adds basic support for Amazon's Simple Email Service to the FuelPHP 1.1 Email Driver. (Support AWS Signature V4). If you are using AWS SDK for PHP, you don't have to do anything.

Install

In the repository's root directory, run git clone git://github.com/GodStorm91/fuel-amazon-ses.git fuel/packages/amazon-ses. This packages support AWS Signature V4 ( with will be effective from 2020 October). If you are using V3 Signature ( can detect by the line below), please consider upgrade your package.

インストール方法:

  • projectをクローンする
  • クローンしたフォルダーから、classes/email/driver/ses.phpfuel/packages/email/classes/driver/ses.php にコピーする
  • fuel/packages/email/bootstrap.phpを下記の行を追加する
'Email\\Email_Driver_Ses'                  => __DIR__.'/classes/email/driver/ses.php',
  • fuel/app/config/ses.phpファイルを作って、シークリートキー、アクセスキー、リージョンを設定する
return array(
	
		'access_key' => '<access_key>',
 		'secret_key' => '<secret_key>',
        'region' => '<region>'

);
$curl->set_header('X-Amzn-Authorization','AWS3-HTTPS AWSAccessKeyId='.\Config::get('ses.access_key').', Algorithm=HmacSHA256, Signature=' . $signature)

Usage

I just changed the signing algorithm, so the usage should stay the same with the original package.

Email::forge(array('driver' => 'ses'))
	->to('[email protected]')
	->from('[email protected]')
	->subject('testing123')
	->body('Your message goes here.')
	->send();

Licence

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

License: MIT

About

FuelPHP package for Amazon SES

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%