HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Custom Email Footer not rendering HTML

I have enabled HTML emails and they work perfectly but the footer is not rendering HTML. I am using the setFooter() function.

Example code:

    public function gdn_email_beforeSendMail_handler($sender) {
        $emailTemplate = $sender->getEmailTemplate();

        $link = url('/link', true);
        $text = sprintf(
          t('press <a href="%s">here</a> for the link'),
          $link
        );

        $emailTemplate->setFooter($text);

        $sender->formatMessage($emailTemplate->toString());
    }

Should there be a reason that the footer does not render the HTML code?

Comments

Sign In or Register to comment.