接口 MimeMessagePreparator

    • 方法详细资料

      • prepare

        void prepare​(MimeMessage mimeMessage)
              throws Exception
        Prepare the given new MimeMessage instance.
        参数:
        mimeMessage - the message to prepare
        抛出:
        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