You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(How) can I set the (file)name for an attachment?
I am adding the file this way:
foreach(QString file, files) {
auto fi = QFileInfo(file);
auto fName = fi.fileName();
auto document = std::make_shared<SimpleMail::MimeAttachment>(std::make_shared<QFile>(file));
document->setContentName(fName.toUtf8());
message.addPart(document);
}
The filename is not displayed properly in the email (it is not "human readable"). When I look at the sourcecode, the relevant part looks like
Activity