Skip to content

[Question] How to construct multipart email messages in body? #964

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

Closed
teward opened this issue May 11, 2023 · 2 comments
Closed

[Question] How to construct multipart email messages in body? #964

teward opened this issue May 11, 2023 · 2 comments

Comments

@teward
Copy link

teward commented May 11, 2023

When dealing with Email, there's a known thing about email bodies - they tend to be 'multipart' messages, both an HTML and a plain-text part. That way, when an HTML message gets sent but a recipient client can only parse plain text for display, there's a plain representation. Conversely, if someone wants to have proper HTML structured messaging for their "plain text" message, there could be an HTML section added that is HTML formatted, albeit plainly.

I don't see a way in the Message functions to specify two body types and make it a multipart message. Is there documentation on how to do this, or is this not possible in the current iteration of the O365 library?

@alejcas
Copy link
Member

alejcas commented May 30, 2023

It should be possible if Ms Graphs allows that, but I can tell you that right now O365 doesn't implement this.

@alejcas
Copy link
Member

alejcas commented Apr 8, 2025

related to #779

Closing this as it's repeated

@alejcas alejcas closed this as completed Apr 8, 2025
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

2 participants