You are here

function uc_csv_mail in Ubercart CSV 7.2

Implements hook_mail

File

./uc_csv.module, line 835

Code

function uc_csv_mail($key, &$message, $params) {
  if ($key == 'uc_csv_key') {
    $headers = array(
      'MIME-Version' => '1.0',
      'Content-Type' => 'multipart/mixed; boundary="' . $params['boundary'] . '"',
      'Content-Transfer-Encoding' => '8Bit',
      'X-Mailer' => 'Drupal',
    );
    foreach ($headers as $key => $value) {
      $message['headers'][$key] = $value;
    }
    $message['subject'] = t($params['subject']);
    $message['body'][] = $params['body'];
  }
}