You are here

function amazon_ses_mailengine in Amazon SES 6

Implementation of hook_mailengine().

File

./amazon_ses.module, line 83
Enables Drupal to send email directly through Amazon SES.

Code

function amazon_ses_mailengine($op, $message = array()) {
  switch ($op) {
    case 'name':
      return t('Amazon SES');
    case 'description':
      return t('Mailing engine using the Amazon SES library.');
    case 'settings':
      module_load_include('inc', 'amazon_ses', 'amazon_ses.admin');
      return amazon_ses_admin_settings();
    case 'multiple':
    case 'single':
    case 'send':
      module_load_include('inc', 'amazon_ses', 'amazon_ses.mail');
      return amazon_ses_send($message);
  }
}