[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [javamail-dev] Attached PDF issues
|
The problem is probably that your mail reader doesn't handle the RFC
2231 style filename parameter properly. You can disable that on the
JavaMail 1.6.2 side by setting the System property
mail.mime.encodeparameters to "false".
Mike Andrasak wrote on 1/30/20 10:00
AM:
I have 2
different
servers, one running javamail 1.5.2 and one running 1.6.2. The
same application
is running on both. When an email is sent from the 1.5.2 server
with a
PDF attached the receiving email address receives the email with
the PDF
properly named and attached. When an email is sent from the
1.6.2 server
the email contains a .dat file attached instead of the .pdf
attached. The
SMTP server for both applications is the same and the receiving
email server
is Microsoft Outlook (it was verified that the following -->
https://www.lifewire.com/prevent-sending-winmail-dat-attachments-1173717does not apply).
pcapng traces were done with each version with the following
results seeming interesting. Note that the 1.6.2 version split
the PDF
file name up. Looking for some additional direction to help
determine what
the issue might be.
1.5.2:
Content-Type:
application/octet-stream;
name="C:\\CIS\\Invoices\\Automated
Invoices-FY19\\2019_07\\Invoices_0719-123.pdf"
Content-Transfer-Encoding:
base64
Content-Disposition:
attachment;
filename="C:\\CIS\\Invoices\\Automated
Invoices-FY19\\2019_07\\Invoices_0719-123.pdf"
1.6.2:
Content-Type:
application/octet-stream;
name*0="C:\\CIS\\Invoices\\Automated
Invoices-FY19\\2019_07\\Invoices_071";
name*1=9-116.pdf
Content-Transfer-Encoding:
base64
Content-Disposition:
attachment;
filename*0="C:\\CIS\\Invoices\\Automated
Invoices-FY19\\2019_07\\Invoices_071";
filename*1=9-116.pdf
Thanks!
Mike
_______________________________________________
javamail-dev mailing list
javamail-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/javamail-dev