You are here

function amazon_ses_send_request in Amazon SES 7.2

Same name and namespace in other branches
  1. 7 includes/amazon_ses.mail.inc \amazon_ses_send_request()

Send the request to amazon ses, which directly call Amazon SES API.

After sending request, it parse the http response returned by Amazon API call.

7 calls to amazon_ses_send_request()
AmazonSesSystem::mail in includes/amazon_ses.mail.inc
Send an e-mail message, using Drupal variables and default settings.
amazon_ses_form_amazon_ses_domain_dkim_enable_form_alter in ./amazon_ses.module
Implements hook_form_FORM_ID_alter().
amazon_ses_get_identity_list in includes/amazon_ses.admin.inc
Retrieve sender identities and their status.
amazon_ses_get_mail_statistics_form in includes/amazon_ses.admin.inc
Display Sending Quota and Statistics data.
amazon_ses_identity_list_update in includes/amazon_ses.admin.inc
Send request to amazon ses api to delete sender's identities.

... See full list

File

./amazon_ses.module, line 184
Module file for amazon_ses.

Code

function amazon_ses_send_request($query_action, $action_parameters) {
  $amazon_ses = getAmazonSes();
  if ($amazon_ses) {
    $result = $amazon_ses
      ->performServiceAction($query_action, $action_parameters);
    return $result;
  }
  else {
    drupal_set_message(t('Please configure amazon ses !here', array(
      '!here' => l(t('here'), 'admin/config/services/amazon-ses/settings'),
    )), 'error');
    return FALSE;
  }
}