8 calls to MailFormatHelper::wrapMail() in Drupal 9
- HtmlToTextTest::testRemoveTrailingWhitespace in core/
modules/ system/ tests/ src/ Functional/ Mail/ HtmlToTextTest.php - Tests that trailing whitespace is removed before newlines.
- HtmlToTextTest::testUsenetSignature in core/
modules/ system/ tests/ src/ Functional/ Mail/ HtmlToTextTest.php - Tests that trailing whitespace from Usenet style signatures is not removed.
- MailFormatHelper::htmlToText in core/
lib/ Drupal/ Core/ Mail/ MailFormatHelper.php - Transforms an HTML string into plain text, preserving its structure.
- MailFormatHelperTest::testWrapMail in core/
tests/ Drupal/ Tests/ Core/ Mail/ MailFormatHelperTest.php - @covers ::wrapMail
- MailTest::testConvertRelativeUrlsIntoAbsolute in core/
modules/ system/ tests/ src/ Kernel/ Mail/ MailTest.php - Checks that relative paths in mails are converted into absolute URLs.
- MailTest::testRenderedElementsUseAbsolutePaths in core/
modules/ system/ tests/ src/ Kernel/ Mail/ MailTest.php - Checks that mails built from render arrays contain absolute paths.
- PhpMail::format in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ PhpMail.php - Concatenates and wraps the email body for plain-text mails.
- TestHtmlMailCollector::format in core/
modules/ system/ tests/ modules/ mail_html_test/ src/ Plugin/ Mail/ TestHtmlMailCollector.php - Concatenates and wraps the email body for plain-text mails.