handle additional atributes on the html tag in html detection

This commit is contained in:
Isaac Connor 2020-02-26 09:42:17 -05:00
parent 576e3149d6
commit 57141fddeb
1 changed files with 2 additions and 2 deletions

View File

@ -860,7 +860,7 @@ sub sendEmail {
From => $Config{ZM_FROM_EMAIL},
To => $Config{ZM_EMAIL_ADDRESS},
Subject => $subject,
Type => (($body=~/<html>/)?'text/html':'text/plain'),
Type => (($body=~/<html/)?'text/html':'text/plain'),
Data => $body
);
@ -962,7 +962,7 @@ sub sendMessage {
From => $Config{ZM_FROM_EMAIL},
To => $Config{ZM_MESSAGE_ADDRESS},
Subject => $subject,
Type => (($body=~/<html>/)?'text/html':'text/plain'),
Type => (($body=~/<html/)?'text/html':'text/plain'),
Data => $body
);