Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm just curious why, when you log the email, you chose run the body through nl2br? When my site sends out automated email, the log inserts the br's and changes the look of my emails.
Not a big deal since it's just a log, but I was just curious if there was an underlying reason for nl2br.
Thanks again
Comments
Comment #1
fizk CreditAttribution: fizk commentedThe code converts the email message to plain text, which strips out break tags. nl2br() puts them back in.