Merge pull request #48 from Spiek/v1.1
Add date header field in RFC2822 format to MimeMessage
This commit is contained in:
commit
ef6194fb26
@ -249,6 +249,7 @@ QString MimeMessage::toString()
|
|||||||
|
|
||||||
mime += "\r\n";
|
mime += "\r\n";
|
||||||
mime += "MIME-Version: 1.0\r\n";
|
mime += "MIME-Version: 1.0\r\n";
|
||||||
|
mime += QString("Date: %1\r\n").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date));
|
||||||
|
|
||||||
mime += content->toString();
|
mime += content->toString();
|
||||||
return mime;
|
return mime;
|
||||||
|
Loading…
Reference in New Issue
Block a user