You are here

public function AmazonSesClass::performServiceAction in Amazon SES 7

Add required parameter & header to the Query according to Query action.

File

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

Class

AmazonSesClass
Modify the drupal mail system to use Amazon SES.

Code

public function performServiceAction($query_action, $action_parameter = array()) {
  switch ($query_action) {
    case 'DeleteIdentity':
      $result = $this
        ->deleteIdentity($action_parameter);
      break;
    case 'GetIdentityDkimAttributes':
      $result = $this
        ->getIdentityDkimAttributes($action_parameter);
      break;
    case 'GetIdentityVerificationAttributes':
      $result = $this
        ->getIdentityVerificationAttributes($action_parameter);
      break;
    case 'GetSendStatistics':
      $result = $this
        ->getSendStatistics($action_parameter);
      break;
    case 'GetSendQuota':
      $result = $this
        ->getSendQuota($action_parameter);
      break;
    case 'ListIdentities':
      $result = $this
        ->listIdentities($action_parameter);
      break;
    case 'SendEmail':
      $result = $this
        ->sendEmail($action_parameter);
      break;
    case 'VerifyDomainDkim':
      $result = $this
        ->verifyDomainDkim($action_parameter);
      break;
    case 'VerifyDomainIdentity':
      $result = $this
        ->verifyDomainIdentity($action_parameter);
      break;
    case 'VerifyEmailIdentity':
      $result = $this
        ->verifyEmailIdentity($action_parameter);
      break;
  }
  return $result;
}