set content-transfer-encoding for RawDataBody in setBody
This commit is contained in:
parent
6beb9902da
commit
c5234d88e0
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ public class MimeMessageHelper {
|
|||
part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType);
|
||||
|
||||
setEncoding(part, MimeUtil.ENC_QUOTED_PRINTABLE);
|
||||
} else if (body instanceof RawDataBody) {
|
||||
String encoding = ((RawDataBody) body).getEncoding();
|
||||
part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue