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
Jad26
New
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?
0
Comments
Most likely because the text is escaped:
If you need to add HTML you probably have to subclass class.emailtemplate.php and override that function.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS