org.springframework.mail.javamail

Interface MimeMessagePreparator

    • Method Detail

      • prepare

        void prepare(MimeMessage mimeMessage)
              throws java.lang.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
        java.io.IOException - passing any exceptions thrown by MimeMessage methods through for automatic conversion to the MailException hierarchy
        java.lang.Exception - if mail preparation failed, for example when a FreeMarker template cannot be rendered for the mail text