Skip to content

Commit 379207e

Browse files
committed
Merge remote-tracking branch 'blocktrron/fix-resourceName' into develop
2 parents ea2471d + 52bd831 commit 379207e

File tree

1 file changed

+1
-1
lines changed
  • modules/simple-java-mail/src/main/java/org/simplejavamail/converter/internal/mimemessage

1 file changed

+1
-1
lines changed

modules/simple-java-mail/src/main/java/org/simplejavamail/converter/internal/mimemessage/MimeMessageHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private static BodyPart getBodyPartFromDatasource(final AttachmentResource attac
238238
final String contentType = attachmentResource.getDataSource().getContentType();
239239
ParameterList pl = new ParameterList();
240240
pl.set("filename", fileName);
241-
pl.set("name", resourceName);
241+
pl.set("name", fileName);
242242
attachmentPart.setHeader("Content-Type", contentType + pl.toString());
243243
attachmentPart.setHeader("Content-ID", format("<%s>", resourceName));
244244
attachmentPart.setDisposition(dispositionType);

0 commit comments

Comments
 (0)