-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contact Form: Wrap mail messages in HTML tags to avoid spam filters (#…
…6658) * Contact Form: Wrap mail messages in HTML tags to avoid spam filters This avoid's SpamAssassin's `HTML_MIME_NO_HTML_TAG` rule. See #6114 * Contact Form: Avoid wrapping in HTML if already has `<html>` tag A plugin could have added the tag via the `contact_form_message` filter, for instance. * Contact Form: Strip formatting tabs before injecting message This prevents the function from unintentionally stripping tabs that were intentionally added to the message body. * Contact Form: Generate all message components using HTML Previously some components were generated with HTML while others relied on plain-text processing, like hardcoded "\n" line breaks. This makes the function more consistent and logical. The unit test for line breaks is no longer relevant, because the body now uses HTML for formatting rather than "\n" breaks, and the plain-text alternative has processing to convert `<br>` breaks to "\n".
- Loading branch information
1 parent
a04b975
commit 7da53e8
Showing
2 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters