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

Sending multipart emails? #375

Open
johanovic opened this issue Dec 19, 2019 · 7 comments
Open

Sending multipart emails? #375

johanovic opened this issue Dec 19, 2019 · 7 comments

Comments

@johanovic
Copy link

Is it possible to send multipart emails, namely emails with both a body in text only and a body in html?

Thanks

@alejcas
Copy link
Member

alejcas commented Dec 19, 2019

Not currently, but check the Ms graph docs

@johanovic
Copy link
Author

Do you have a link to the relevant documentation?

@alejcas
Copy link
Member

alejcas commented Dec 21, 2019

No... but check this as a start

@johanovic
Copy link
Author

The docs claim it is possible:

When getting a message, you can specify the following request header to return the body and uniqueBody properties in text format:
HTTP

Prefer: outlook.body-content-type="text"

@alejcas
Copy link
Member

alejcas commented Jan 10, 2020

The docs claim it is possible:

When getting a message, you can specify the following request header to return the body and uniqueBody properties in text format:
HTTP
Prefer: outlook.body-content-type="text"

I'm not sure but setting this header only converts the body property of a message into plain text.
You still don't have access to MIME Multipart emails.

And this still does not solve the issue of sending MIME Multipart Messages.

@johanovic
Copy link
Author

Indeed, the message would not be multipart, but at least it should be possible to send text-only messages, right? (although that was not my initial question).

thanks!

@alejcas
Copy link
Member

alejcas commented Apr 30, 2020

@johanovic sorry for this late response...
I don't have time right know to check if setting the header when sending an email will send the email just as plain text.
If you can you try it setting the boy with some html tags would be great.

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