You are here

function sendgrid_integration_email_resend in SendGrid Integration 7

Cron queue worker callback function. Tries to send email again, if it previously failed with good reason.

1 string reference to 'sendgrid_integration_email_resend'
sendgrid_integration_cron_queue_info in ./sendgrid_integration.module
Implements hook_cron_queue_info().

File

./sendgrid_integration.module, line 101
Main module file for SendGrid Integration.

Code

function sendgrid_integration_email_resend($message) {

  // Defining parameters first to improve code readability.
  $module = $message['module'];
  $key = $message['key'];
  $to = $message['to'];
  $language = $message['language'];
  $params = $message['params'];
  $from = $message['from'];
  $send = TRUE;
  drupal_mail($module, $key, $to, $language, $params, $from, $send);
}