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

Please, could anyone provide me an example of how to get the mail content as a unencoded string? #140

Closed
nigoolasi opened this issue Sep 13, 2023 · 2 comments

Comments

@nigoolasi
Copy link

Please, could anyone provide me an example of how to get the mail content as a unencoded string?
when i use the code below
msg.format(msgbody)

i get an string encoded by base64,

@yjm6560
Copy link

yjm6560 commented Sep 13, 2023

is msgbody original mime?
if so, i think msg.parse(msgbody); std::cout << msg.content(); can help.
if it doesn't work, do msgbody = "\r\n" + msgbody and try again

@karastojko
Copy link
Owner

The answer seems correct to me.

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

3 participants