function htmlmail_is_allowed in HTML Mail 6.2
Same name and namespace in other branches
- 8.2 htmlmail.module \htmlmail_is_allowed()
- 7.2 htmlmail.module \htmlmail_is_allowed()
Checks whether a given recipient email prefers plaintext-only messages.
Parameters
$email: The recipient email address.
Return value
FALSE if the recipient prefers plaintext-only messages; otherwise TRUE.
1 call to htmlmail_is_allowed()
- HTMLMailSystem::format in ./
htmlmail.mail.inc - Format emails according to module settings.
File
- ./
htmlmail.module, line 215 - Sends system emails in HTML.
Code
function htmlmail_is_allowed($email) {
return !($recipient = user_load(array(
'mail' => $email,
))) || empty($recipient->htmlmail_plaintext);
}