You are here

function webform_mail in Webform 7.4

Same name and namespace in other branches
  1. 8.5 webform.module \webform_mail()
  2. 6.3 webform.module \webform_mail()
  3. 6.2 webform.module \webform_mail()
  4. 7.3 webform.module \webform_mail()
  5. 6.x webform.module \webform_mail()

Implements hook_mail().

2 string references to 'webform_mail'
webform_email_edit_form in includes/webform.emails.inc
Form for configuring an e-mail setting and template.
_webform_submission_prepare_mail in includes/webform.submissions.inc
Prepare a submission email for use by webform_submission_send_mail()

File

./webform.module, line 2260
This module provides a simple way to create forms and questionnaires.

Code

function webform_mail($key, &$message, $params) {
  $message['headers'] = array_merge($message['headers'], $params['headers']);
  $message['subject'] = $params['subject'];
  $message['body'][] = $params['message'];
}