Interface MimeMessagePreparator

    • Method Detail

      • prepare

        void prepare​(MimeMessage mimeMessage)
              throws Exception
        Prepare the given new MimeMessage instance.
        Parameters:
        mimeMessage - the message to prepare
        Throws:
        MessagingException - passing any exceptions thrown by MimeMessage methods through for automatic conversion to the MailException hierarchy
        IOException - passing any exceptions thrown by MimeMessage methods through for automatic conversion to the MailException hierarchy
        Exception - if mail preparation failed, for example when a Velocity template cannot be rendered for the mail text