You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Possible encoders for email content (text/html/iCalendar). Default is {@link #QUOTED_PRINTABLE}. This list reflects Jakarta Mail's supported encoders as found at
* Determines what encoding is applied to the text/html/iCalendar encoding in the MimeMessage/EML. Default is {@link ContentTransferEncoding#QUOTED_PRINTABLE}, which basicallt means plain
330
+
* text, so you can just read the content of the EML (if not encrypted).
331
+
* <p>
332
+
* However, you can choose another encoding as supported by Jakarta Mail. The list is quite extensive, but the most common alternative is base64. This might be useful for example for obfuscating
333
+
* the content to some extent.
334
+
*
335
+
* @param contentTransferEncoding The encoder to use for the text/html/iCalendar content.
Copy file name to clipboardExpand all lines: modules/simple-java-mail/src/main/java/org/simplejavamail/converter/internal/mimemessage/MimeMessageHelper.java
+11-6
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ public class MimeMessageHelper {
* Fills the {@link MimeBodyPart} instance with the content body content (text, html and calendar).
124
+
* Fills the {@link MimeBodyPart} instance with the content body content (text, html and calendar), with Content-Transfer-Encoding header taken from Email.
121
125
*
122
-
* @param email The message in which the content is defined.
123
-
* @param messagePart The {@link MimeBodyPart} that will contain the body content (either plain text, HTML text or iCalendar text)
126
+
* @param email The message in which the content is defined.
127
+
* @param messagePart The {@link MimeBodyPart} that will contain the body content (either plain text, HTML text or iCalendar text)
124
128
*
125
129
* @throws MessagingException See {@link BodyPart#setText(String)}, {@link BodyPart#setContent(Object, String)}.
0 commit comments