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

"multipart/alternative" will not display in some email client #27

Open
zjjott opened this issue Apr 29, 2015 · 6 comments
Open

"multipart/alternative" will not display in some email client #27

zjjott opened this issue Apr 29, 2015 · 6 comments

Comments

@zjjott
Copy link

zjjott commented Apr 29, 2015

I use envelopes in our project.
I found a bug:some attachment disappear in some email client (Airmail exactly)when I send email use envelopes.
I try to fix this bug,and I realize the following source is origin
https://github.com/tomekwojcik/envelopes/blob/master/envelopes%2Fenvelope.py#L276

msg = MIMEMultipart('alternative')

I inherit envelopes class and rewrite to_mime_message() function,then bug fixed

msg = MIMEMultipart('mixed')

RFC 1341 7.2.3 say:

The multipart/alternative type is syntactically identical to multipart/mixed, but the semantics are different. In particular, each of the parts is an "alternative" version of the same information. User agents should recognize that the content of the various parts are interchangeable. The user agent should either choose the "best" type based on the user's environment and preferences, or offer the user the available alternatives. In general, choosing the best type means displaying only the LAST part that can be displayed.

So why envelopes project use multipart/alternative type instead multipart/mixed?Is it a bug?

@zjjott
Copy link
Author

zjjott commented May 13, 2015

Hey,is there some people?

@Lvl4Sword
Copy link

how interesting, this fix also solves #25's issue with dual-sending of attachments in gmail 👍

@cool-RR
Copy link

cool-RR commented May 31, 2016

I'd really like to see a new release with this fix...

@Lvl4Sword
Copy link

tomek is contactable via tomek@bthlabs.pl if you'd like to send an e-mail to him and find out as to why he hasn't kept up-to-date with this.

@zjjott
Copy link
Author

zjjott commented Jun 1, 2016

@Lvl4Sword thank you very muchI will email him

@cool-RR
Copy link

cool-RR commented Mar 12, 2019

@tomekwojcik What do you think about making a new release with this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants