You are here

private function AmazonSesClass::verifyEmailIdentity in Amazon SES 7

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 AmazonSesClass::verifyEmailIdentity()
AmazonSesClass::performServiceAction in includes/classes/amazonses.class.php
Add required parameter & header to the Query according to Query action.

File

includes/classes/amazonses.class.php, line 344
Class for interacting with Amazon SES service.

Class

AmazonSesClass
Modify the drupal mail system to use Amazon SES.

Code

private function verifyEmailIdentity($action_parameter) {
  $response_xml = $this->sesClient
    ->verify_email_identity($action_parameter['EmailAddress']);

  // Parse xml response.
  if ($response_xml->status == '200') {
    $result['status'] = AMAZON_SES_REQUEST_SUCCESS;
  }
  else {
    $result['status'] = AMAZON_SES_REQUEST_FALIURE;
  }
  return $result;
}