function theme_webform_mail_headers in Webform 6.3
Same name and namespace in other branches
- 5.2 webform.module \theme_webform_mail_headers()
- 6.2 webform.module \theme_webform_mail_headers()
- 7.4 webform.module \theme_webform_mail_headers()
- 7.3 webform.module \theme_webform_mail_headers()
Theme the headers when sending an email from webform.
Parameters
$node: The complete node object for the webform.
$submission: The webform submission of the user.
$email: If you desire to make different e-mail headers depending on the recipient, you can check the $email['email'] property to output different content. This will be the ID of the component that is a conditional e-mail recipient. For the normal e-mails, it will have the value of 'default'.
Return value
An array of headers to be used when sending a webform email. If headers for "From", "To", or "Subject" are set, they will take precedence over the values set in the webform configuration.
File
- ./
webform.module, line 2714
Code
function theme_webform_mail_headers($node, $submission, $email) {
$headers = array(
'X-Mailer' => 'Drupal Webform (PHP/' . phpversion() . ')',
);
return $headers;
}