Interface AttachmentsContentTransferEncodingResolver


  • public interface AttachmentsContentTransferEncodingResolver
    Resolver to determine Content-Transfer-Encoding for file attachments.
    Normally this will be determined automatically, this resolver can be used to override this behavior.
    • Method Detail

      • resolveContentTransferEncoding

        String resolveContentTransferEncoding​(javax.mail.BodyPart messageBodyPart)
        Resolves the content-transfer-encoding.

        Return null if you cannot resolve a content-transfer-encoding or want to rely on the mail provider to resolve it for you.

        Parameters:
        messageBodyPart - the body part
        Returns:
        the content-transfer-encoding or null to rely on the mail provider