Interface CustomMailConfigHelper


  • public interface CustomMailConfigHelper
    Helper interface for customizing email message configuration. Author: Mohammed saif
    • Method Detail

      • customizeMessage

        default void customizeMessage​(javax.mail.internet.MimeMessage message)
        Customizes the provided MimeMessage object before sending an email. This method can be implemented in a class to add custom logic for modifying the MimeMessage according to specific requirements.
        Parameters:
        message - The MimeMessage object to be customized.
      • customizeEmailContent

        default MailContent customizeEmailContent​(User user,
                                                  List<NotificationParam> notificationParamList,
                                                  AuditLogBuilder auditLogBuilder)
        Customizes the email content based on the user, notification parameters, and audit log information. This method can be used to generate a custom MailContent object for an email that is sent to a user. The method provides the user details, a list of notification parameters, and audit log information to tailor the email content to specific needs.
        Parameters:
        user - The User object containing information about the recipient.
        notificationParamList - A list of NotificationParam objects representing the parameters of the notification.
        auditLogBuilder - An AuditLogBuilder object for logging actions related to the email.
        Returns:
        A MailContent object containing the customized subject and body for the email.