-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emails with no body insert attachment as text. #15
Comments
Hi @krolaw, thanks for trying out the library! Could you please expand a bit on this? I'm not sure what issue it is you're encountering. From what I can see, it looks like you're creating an email with no body, only attaching a file. Then, after encoding is performed, the base64 encoding is actually interpreted as the email body text? |
100% correct. Adding a single carriage return to content gets around the issue. |
@krolaw Which server generates above email content? Here's an example from postfix:
and it's parsed correctly after #89 |
I don't believe it was from any server. Possibly output from the library itself, but don't quote me, it was over 5 years ago. I'm betting the issue has long been fixed, so I'm closing it now. |
I.E.
From: [email protected]
Subject: Invoice from My Apartment Motel
Date: 11 December 2014 2:42:59 pm NZDT
To: [email protected]
Content-Type: application/octet-stream
Content-Disposition: attachment;
filename="Invoice 2474.PDF"
Content-Id: <Invoice 2474.PDF>
Content-Transfer-Encoding: base64
JVBERi0xLjQKJaqrrK0KNCAwIG9iago8PAovQ3JlYXRvciAoQXBhY2hlIEZPUCBWZXJzaW9uIDEu
MCkKL1Byb2R1Y2VyIC...
The text was updated successfully, but these errors were encountered: