function getAmazonSes in Amazon SES 7.2
1 call to getAmazonSes()
- amazon_ses_send_request in ./
amazon_ses.module - Send the request to amazon ses, which directly call Amazon SES API.
File
- ./
amazon_ses.module, line 166 - Module file for amazon_ses.
Code
function getAmazonSes() {
$key = variable_get('amazon_ses_key', '');
$secret = variable_get('amazon_ses_secret', '');
$region = variable_get('amazon_ses_region', '');
if (!empty($key) && !empty($secret) && !empty($region)) {
return new \Drupal\amazon_ses\AmazonSes($region, $key, $secret);
}
else {
return FALSE;
}
}