Package com.vdoc.sdk.commons.freemarker
Class FMMailUtils
java.lang.Object
com.vdoc.sdk.commons.freemarker.FMMailUtils
Deprecated.
- Author:
- famaridon
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.mail.internet.MimeMessageevaluateMessage(String subject, String templateName, String mimeType, Map<String, Object> parameters) Deprecated.TheMimeMessageFROM field is set with the server configuration.static jakarta.mail.internet.MimeMessageDeprecated.TheMimeMessageFROM field is set with the server configuration.
-
Method Details
-
evaluateMessage
public static jakarta.mail.internet.MimeMessage evaluateMessage(String subject, String templateName, Map<String, Object> parameters) throws IOException, freemarker.template.TemplateException, jakarta.mail.MessagingExceptionDeprecated.TheMimeMessageFROM field is set with the server configuration.- Parameters:
subject- the mail subjecttemplateName- the .ftl file name under the 'resources/fm/templates/mail/' folder.parameters- freemarker data.- Returns:
- the evaluated message
- Throws:
IOException- if the .ftl can't be readfreemarker.template.TemplateException- if the .ftl contain errorjakarta.mail.MessagingException- on errorjakarta.mail.internet.AddressException- on error
-
evaluateMessage
public static jakarta.mail.internet.MimeMessage evaluateMessage(String subject, String templateName, String mimeType, Map<String, Object> parameters) throws IOException, freemarker.template.TemplateException, jakarta.mail.MessagingExceptionDeprecated.TheMimeMessageFROM field is set with the server configuration.- Parameters:
subject- the mail subjecttemplateName- the .ftl file name under the 'resources/fm/templates/mail/' folder.mimeType- the mime typeparameters- freemarker data.- Returns:
- the evaluated message
- Throws:
IOException- if the .ftl can't be readfreemarker.template.TemplateException- if the .ftl contain errorjakarta.mail.MessagingException- on errorjakarta.mail.internet.AddressException- on error
-