Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant