bluetiger9 / SmtpClient-for-Qt

An SMTP Client writen in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
https://github.com/bluetiger9/SmtpClient-for-Qt/wiki
GNU Lesser General Public License v2.1
456 stars 228 forks source link

Fixed Qt4 compilation for version 1.1. Works with MSVC2013. (#62) #69

Closed esilvia closed 6 years ago

esilvia commented 6 years ago

Qt4 doesn't have Q_NULLPTR defined, nor does it support RFC2822Date. I manually constructed the RFC2822Date if QT_MAJOR_VERSION < 5 based on the Qt5 source and replaced Q_NULLPTR with nullptr. Worked for me using MSVC2013 as my compiler.

I think my Qt Creator style also fixed indentation for a couple lines.