diff --git a/README.md b/README.md index 3d3da97..ee6a02a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,18 @@ -SMTP Client for Qt (C++) - Development Branch (v. 1.1 beta) +SMTP Client for Qt (C++) - Version 1.1 ============================================= The SmtpClient for Qt is small library writen for Qt 4 (C++ version) that allows application to send complex emails (plain text, html, attachments, inline files, etc.) using the Simple Mail Transfer Protocol (SMTP). +##New in version 1.1: + +- TLS (STARTTLS) connection is now supported + +- multiple types of recipients (to, cc, bcc) + +- nested mime emails (mixed/alternative, mixed/related) + +- output compilant with RFC2045 + ## SMPT Client for Qt supports diff --git a/src/mimemessage.cpp b/src/mimemessage.cpp index 211fdc6..14a76c7 100644 --- a/src/mimemessage.cpp +++ b/src/mimemessage.cpp @@ -191,7 +191,9 @@ QString MimeMessage::toString() /* ---------------------------------- */ /* ------- Recipients / Cc ---------- */ - mime += "Cc:"; + if (recipientsCc.size() != 0) { + mime += "Cc:"; + } for (i = 0, it = recipientsCc.begin(); it != recipientsCc.end(); ++it, ++i) { if (i != 0) { mime += ","; } @@ -212,7 +214,9 @@ QString MimeMessage::toString() } mime += " <" + (*it)->getAddress() + ">"; } - mime += "\r\n"; + if (recipientsCc.size() != 0) { + mime += "\r\n"; + } /* ---------------------------------- */ /* ------------ Subject ------------- */