private function AmazonSes::verifyEmailIdentity in Amazon SES 7.2
Call Query API action VerifyEmailIdentity.
Verifies an email address. This action causes a confirmation email message to be sent to the specified address. This action is throttled at one request per second.
1 call to AmazonSes::verifyEmailIdentity()
- AmazonSes::performServiceAction in src/
AmazonSes.php - Add required parameter & header to the Query according to Query action.
File
- src/
AmazonSes.php, line 348 - Class for interacting with Amazon SES service.
Class
- AmazonSes
- Modify the drupal mail system to use Amazon SES.
Namespace
Drupal\amazon_sesCode
private function verifyEmailIdentity($action_parameter) {
$result['error'] = FALSE;
try {
$response = $this->sesClient
->verifyEmailIdentity([
'EmailAddress' => $action_parameter['EmailAddress'],
]);
} catch (\Aws\Ses\Exception\SesException $e) {
$result['message'] = $e
->getAwsErrorType();
$result['errorCode'] = $e
->getAwsErrorCode();
$result['error'] = TRUE;
}
return $result;
}