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

HTML Formatted Mail Problem #70

Closed
TaeZStkyoht opened this issue Mar 19, 2021 · 2 comments
Closed

HTML Formatted Mail Problem #70

TaeZStkyoht opened this issue Mar 19, 2021 · 2 comments

Comments

@TaeZStkyoht
Copy link

Can this library supports html formatted mails? I've assigned a HTML formatted string to message content, however it has sent the exact HTML string not the interpreted version of HTML string.

@karastojko
Copy link
Owner

Just set the content type to text/html.

@TaeZStkyoht
Copy link
Author

TaeZStkyoht commented Mar 20, 2021

Ok I've tried text/html and didn't work. And I had also character encoding problem.
In the end I solved like that: msg.content_type(mime::media_type_t::TEXT, "html", "utf-8");
Not text/html but html. Because text/html didn't work properly.
For those who have problem like that, just use line I've written.

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