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 common branded layout, 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.