Does anyone know what to do? I have not been able to find any clues in the Book, or the source, for that matter.
For instance, the following code fragment:
mMessageBuilder.constructTextPart(vmime::mediaType
(vmime::mediaTypes::TEXT,
vmime::mediaTypes::TEXT_HTML));
auto textPart =
mMessageBuilder.getTextPart().dynamicCast <vmime::htmlTextPart>();
textPart->setCharset(vmime::charsets::UTF_8);
auto message = "<html>\n"
" <body>\n"
"<p>bla bla</p>"
" </body>\n"
"</html>";
textPart->setText(vmime::create <vmime::stringContentHandler>(message));
results in (relevant part only)
Content-Type: text/html; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable
<html>=0A <body>=0A<p>bla bla</p>=0A </bod=
y>=0A</html>
and should have been:
Content-Type: text/html; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable
<html>
<body>
<p>bla bla</p>
</body>
</html>
textPart->setText(vmime::create <vmime::stringContentHandler>(message));
Should have been:
textPart->setText(vmime::create <vmime::stringContentHandler>(message,
vmime::encoding("quoted-printable"));