From 28666c2603f33415cb884cab7bd96a201ca26b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C5=91k=C3=A9s=20Attila?= Date: Thu, 9 Aug 2012 22:34:56 +0300 Subject: [PATCH] Version 1.1 --- README.md | 12 +++++++++++- src/mimemessage.cpp | 8 ++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) 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 ------------- */