Skip to content

Commit

Permalink
Added a comment which explains that calling backdrop_wrap_mail() is n…
Browse files Browse the repository at this point in the history
…ot necessary
  • Loading branch information
kiamlaluno committed Apr 25, 2024
1 parent 7c324c4 commit aff6397
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/modules/system/system.mail.inc
Expand Up @@ -21,6 +21,8 @@ class DefaultMailSystem implements MailSystemInterface {
// Join the body array into one string.
$message['body'] = implode("\n\n", $message['body']);
// Convert any HTML to plain-text and wrap the mail body for sending.
// Note that backdrop_html_to_text() already calls backdrop_wrap_mail(), so
// it is not necessary to call that explicitly again.
$message['body'] = backdrop_html_to_text($message['body']);
return $message;
}
Expand Down

0 comments on commit aff6397

Please sign in to comment.