You are here

public function AmazonSes::__construct in Amazon SES 7.2

Initiliaze this class.

File

src/AmazonSes.php, line 20
Class for interacting with Amazon SES service.

Class

AmazonSes
Modify the drupal mail system to use Amazon SES.

Namespace

Drupal\amazon_ses

Code

public function __construct($region, $key, $secret) {
  $this->sesClient = new \Aws\Ses\SesClient([
    'version' => 'latest',
    'region' => $region,
    'credentials' => [
      'key' => $key,
      'secret' => $secret,
    ],
  ]);
}