Class BrandedEmailSender

java.lang.Object
io.meeds.social.core.mail.BrandedEmailSender

@Service public class BrandedEmailSender extends Object
Sends branded HTML emails to platform users: a caller provides the resolved subject, a content fragment (the paragraphs specific to its email) and optional custom tokens; this sender injects the fragment in the shared email layout of the portal (see EmailLayout), resolves the ${...} shared bundle keys in the user language, then substitutes the standard tokens ($EMAIL_TITLE with the subject, $LANG, $USER_FULL_NAME, $SITE_NAME, $COMPANY_LINK, $PRIMARY_COLOR) before sending through the mail service.
  • Field Details

    • EMAIL_TITLE_PARAM

      public static final String EMAIL_TITLE_PARAM
      See Also:
    • CODE_TOKEN

      public static final String CODE_TOKEN
      The token of a one-time code, which the sender also shows in the preview line of the inbox
      See Also:
  • Constructor Details

    • BrandedEmailSender

      public BrandedEmailSender()
  • Method Details