public function AmazonSesClass::__construct in Amazon SES 7
Initiliaze this class.
File
- includes/
classes/ amazonses.class.php, line 20 - Class for interacting with Amazon SES service.
Class
- AmazonSesClass
- Modify the drupal mail system to use Amazon SES.
Code
public function __construct() {
libraries_load('awssdk');
$awssdk_config = awssdk_config_load();
$this->sesClient = new AmazonSES($awssdk_config);
// If there is a region set for SES, use it.
$region = variable_get('amazon_ses_region', AmazonSES::DEFAULT_URL);
$this->sesClient
->set_region($region);
}