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

Is MIME multipart hierarchy correct ? #43

Open
chmike opened this issue Dec 21, 2018 · 0 comments
Open

Is MIME multipart hierarchy correct ? #43

chmike opened this issue Dec 21, 2018 · 0 comments

Comments

@chmike
Copy link

chmike commented Dec 21, 2018

I’m confused by the multipart tree structure generated for a mail with alternate text and html, embed and attachment. Here is what go-mail generates:

multipart/mixed 
|-- multipart/related
|   |-- multipart/alternate
|   |   |-- text/plain
|   |   `-- text/html
|   `-- image/jpg
`-- attachment

What I expected to see:

multipart/mixed 
|-- multipart/alternate
|   |-- text/plain
|   `-- multipart/related
|       |-- text/html
|       `-- image/jpg
`-- attachment

This is the structure that I have seen in mails. Which one is correct ?

What is the point to associate (relate) the embedded image to the text/plain part ?

@chmike chmike changed the title Example for alternate html with embed image Is MIME multipart hierarchy correct ? Dec 21, 2018
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

1 participant