Skip to content
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

Email bodies should be sub parts #375

Closed
willpower232 opened this issue Oct 12, 2017 · 2 comments · Fixed by #376
Closed

Email bodies should be sub parts #375

willpower232 opened this issue Oct 12, 2017 · 2 comments · Fixed by #376
Labels

Comments

@willpower232
Copy link
Collaborator

The HTML and plain text parts of an email should be sub parts of a part with content type "multipart/alternative" and the main message content type should be "multipart/mixed". Attachments should be siblings of the "multipart/alternative" and not on the same level as the HTML or plain text parts.

"multipart/mixed"
    |
    |\ "multipart/alternative"
    |   |\ "text/plain"
    |   \ "text/html"
    |
    \ attachments

This problem presents itself when some recipients say they are not able to see the attachments to the message.

You can also replicate this issue by downloading a sent message within the Postal UI. If you open the EML file in Outlook 2016, you will not be able to see the attachment.

Ruby reference: mikel/mail#522 (comment)
Comparable Stack Overflow question: https://stackoverflow.com/questions/3902455/mail-multipart-alternative-vs-multipart-mixed

I will fix this as a pull request shortly...

@willpower232
Copy link
Collaborator Author

🎉 #376 (comment)

@catphish
Copy link
Contributor

catphish commented Apr 6, 2023

Resolved by d0db134

@catphish catphish closed this as completed Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants