webform_email_html_capable
Drupal 7 webform_email_html_capable()
Check if any available HTML mail handlers are available for Webform to use.
3 calls to webform_email_html_capable()
File
- sites/
all/ modules/ webform/ webform.module, line 3758
Code
function webform_email_html_capable() {
// TODO: Right now we only support MIME Mail. Support others if available
// through a hook?
if (module_exists('mimemail')) {
$mail_systems = variable_get('mail_system', array('default-system' => 'DefaultMailSystem'));
$enable = !isset($mail_systems['webform']) || $mail_systems['webform'] == 'MimeMailSystem';
// We assume that if a solution exists even if it's not specified we should
// use it. Webform will specify if e-mails sent with the system are plain-
// text or not when sending each e-mail.
if ($enable) {
$GLOBALS['conf']['mail_system']['webform'] = 'MimeMailSystem';
return TRUE;
}
}
else {
return FALSE;
}
}

