File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
spring-context-support/src/main/java/org/springframework/mail/javamail Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public class MimeMessageHelper {
173
173
174
174
private FileTypeMap fileTypeMap ;
175
175
176
- private boolean encodeFilenames = true ;
176
+ private boolean encodeFilenames = false ;
177
177
178
178
private boolean validateAddresses = false ;
179
179
@@ -490,9 +490,11 @@ public FileTypeMap getFileTypeMap() {
490
490
/**
491
491
* Set whether to encode attachment filenames passed to this helper's
492
492
* {@code #addAttachment} methods.
493
- * <p>The default is {@code true } for compatibility with older email clients;
494
- * turn this to {@code false } for standard MIME behavior . On a related note,
493
+ * <p>The default is {@code false } for standard MIME behavior; turn this to
494
+ * {@code true } for compatibility with older email clients . On a related note,
495
495
* check out JavaMail's {@code mail.mime.encodefilename} system property.
496
+ * <p><b>NOTE:</b> The default changed to {@code false} in 5.3, in favor of
497
+ * JavaMail's standard {@code mail.mime.encodefilename} system property.
496
498
* @since 5.2.9
497
499
* @see #addAttachment(String, DataSource)
498
500
* @see MimeBodyPart#setFileName(String)
You can’t perform that action at this time.
0 commit comments