public function AmazonSes::performServiceAction in Amazon SES 7.2
Add required parameter & header to the Query according to Query action.
File
- src/
AmazonSes.php, line 34 - Class for interacting with Amazon SES service.
Class
- AmazonSes
- Modify the drupal mail system to use Amazon SES.
Namespace
Drupal\amazon_sesCode
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 'VerifyDomainIdentity':
$result = $this
->verifyDomainIdentity($action_parameter);
break;
case 'VerifyEmailIdentity':
$result = $this
->verifyEmailIdentity($action_parameter);
break;
}
return $result;
}