You are here

private function AmazonSesClass::verifyDomainIdentity in Amazon SES 7

Call Query API action VerifyDomaindentity.

Verifies a domain.This action is throttled at one request per second.

1 call to AmazonSesClass::verifyDomainIdentity()
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 363
Class for interacting with Amazon SES service.

Class

AmazonSesClass
Modify the drupal mail system to use Amazon SES.

Code

private function verifyDomainIdentity($action_parameter) {
  $response_xml = $this->sesClient
    ->verify_domain_identity($action_parameter['Domain']);

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