The value of inviteMember.notificationContent is treated under the rules of java.util.Properties and of java.text.MessageFormat.

I believe \r (CR) and \n (LF) will work here.

Currently the message is always sent as MIME type "text/plain; charset=utf-8", so it would require a bit of customization to use HTML. You'd probably want to add a configuration (roller.properties) property for the MIME type of the e-mail, and then in InviteMemberAction apply MailUtil.sendMessage() with the configured type rather than sendTextMessage() which forces the type. This might be a reasonable request for a minor improvement, or taken back into the source base as a contribution.

That said, text is generally safer to use here for transparency to be more easily distinguished from phishing or spam both by automated and human assessment.

--a.

Greg Hamer wrote:

In ApplicationResources.properties for inviteMember.notificationContent= is
any sort of formatting possible/supported?

E.g. line feeds, or maybe even HTML?

Thanks,

g



Reply via email to