Add date header field in RFC2822 format to MimeMessage

This commit is contained in:
Spiek 2016-03-22 14:48:46 +01:00
parent 48c080b9ee
commit 78bf2dac42

View File

@ -249,6 +249,7 @@ QString MimeMessage::toString()
mime += "\r\n";
mime += "MIME-Version: 1.0\r\n";
mime += QString("Date: %1\r\n").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date));
mime += content->toString();
return mime;