Next, I try to use it.
I copy all of the .h (+SimpleMail) files from simple-mail-2.2.0/src and use the "blocking" example. I build it, but I get 3 errors and a bunch of warnings:
x64\Debug\moc\moc_serverreply.cpp(67,1): warning C4273: 'SimpleMail::ServerReply::qt_static_metacall': inconsistent dll linkage
simple-mail\include\serverreply.h(28,5): message : see previous definition of 'qt_static_metacall' (compiling source file x64\Debug\moc\moc_serverreply.cpp)
x64\Debug\moc\moc_serverreply.cpp(88,82): warning C4273: 'staticMetaObject': inconsistent dll linkage
simple-mail\include\serverreply.h(28,5): message : see previous definition of 'public: static QMetaObject const SimpleMail::ServerReply::staticMetaObject' (compiling source file x64\Debug\moc\moc_serverreply.cpp)
x64\Debug\moc\moc_serverreply.cpp(88,82): error C2491: 'SimpleMail::ServerReply::staticMetaObject': definition of dllimport static data member not allowed
x64\Debug\moc\moc_serverreply.cpp(99,1): warning C4273: 'SimpleMail::ServerReply::metaObject': inconsistent dll linkage
simple-mail\include\serverreply.h(28,5): message : see previous definition of 'metaObject' (compiling source file x64\Debug\moc\moc_serverreply.cpp)
x64\Debug\moc\moc_serverreply.cpp(104,1): warning C4273: 'SimpleMail::ServerReply::qt_metacast': inconsistent dll linkage
simple-mail\include\serverreply.h(28,5): message : see previous definition of 'qt_metacast' (compiling source file x64\Debug\moc\moc_serverreply.cpp)
x64\Debug\moc\moc_serverreply.cpp(112,1): warning C4273: 'SimpleMail::ServerReply::qt_metacall': inconsistent dll linkage
simple-mail\include\serverreply.h(28,5): message : see previous definition of 'qt_metacall' (compiling source file x64\Debug\moc\moc_serverreply.cpp)
x64\Debug\moc\moc_serverreply.cpp(130,1): warning C4273: 'SimpleMail::ServerReply::finished': inconsistent dll linkage
simple-mail\include\serverreply.h(40,10): message : see previous definition of 'finished' (compiling source file x64\Debug\moc\moc_serverreply.cpp)
x64\Debug\moc\moc_server.cpp(126,1): warning C4273: 'SimpleMail::Server::qt_static_metacall': inconsistent dll linkage
simple-mail\include\server.h(31,5): message : see previous definition of 'qt_static_metacall' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_server.cpp(154,77): warning C4273: 'staticMetaObject': inconsistent dll linkage
simple-mail\include\server.h(31,5): message : see previous definition of 'public: static QMetaObject const SimpleMail::Server::staticMetaObject' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_server.cpp(154,77): error C2491: 'SimpleMail::Server::staticMetaObject': definition of dllimport static data member not allowed
x64\Debug\moc\moc_server.cpp(165,1): warning C4273: 'SimpleMail::Server::metaObject': inconsistent dll linkage
simple-mail\include\server.h(31,5): message : see previous definition of 'metaObject' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_server.cpp(170,1): warning C4273: 'SimpleMail::Server::qt_metacast': inconsistent dll linkage
simple-mail\include\server.h(31,5): message : see previous definition of 'qt_metacast' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_server.cpp(178,1): warning C4273: 'SimpleMail::Server::qt_metacall': inconsistent dll linkage
simple-mail\include\server.h(31,5): message : see previous definition of 'qt_metacall' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_server.cpp(196,1): warning C4273: 'SimpleMail::Server::smtpError': inconsistent dll linkage
simple-mail\include\server.h(183,10): message : see previous definition of 'smtpError' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_server.cpp(203,1): warning C4273: 'SimpleMail::Server::sslErrors': inconsistent dll linkage
simple-mail\include\server.h(184,10): message : see previous definition of 'sslErrors' (compiling source file x64\Debug\moc\moc_server.cpp)
x64\Debug\moc\moc_sender.cpp(144,1): warning C4273: 'SimpleMail::Sender::qt_static_metacall': inconsistent dll linkage
simple-mail\include\sender.h(32,5): message : see previous definition of 'qt_static_metacall' (compiling source file x64\Debug\moc\moc_sender.cpp)
x64\Debug\moc\moc_sender.cpp(200,77): warning C4273: 'staticMetaObject': inconsistent dll linkage
simple-mail\include\sender.h(32,5): message : see previous definition of 'public: static QMetaObject const SimpleMail::Sender::staticMetaObject' (compiling source file x64\Debug\moc\moc_sender.cpp)
x64\Debug\moc\moc_sender.cpp(200,77): error C2491: 'SimpleMail::Sender::staticMetaObject': definition of dllimport static data member not allowed
x64\Debug\moc\moc_sender.cpp(211,1): warning C4273: 'SimpleMail::Sender::metaObject': inconsistent dll linkage
simple-mail\include\sender.h(32,5): message : see previous definition of 'metaObject' (compiling source file x64\Debug\moc\moc_sender.cpp)
x64\Debug\moc\moc_sender.cpp(216,1): warning C4273: 'SimpleMail::Sender::qt_metacast': inconsistent dll linkage
simple-mail\include\sender.h(32,5): message : see previous definition of 'qt_metacast' (compiling source file x64\Debug\moc\moc_sender.cpp)
x64\Debug\moc\moc_sender.cpp(224,1): warning C4273: 'SimpleMail::Sender::qt_metacall': inconsistent dll linkage
simple-mail\include\sender.h(32,5): message : see previous definition of 'qt_metacall' (compiling source file x64\Debug\moc\moc_sender.cpp)
x64\Debug\moc\moc_sender.cpp(242,1): warning C4273: 'SimpleMail::Sender::smtpError': inconsistent dll linkage
simple-mail\include\sender.h(223,10): message : see previous definition of 'smtpError' (compiling source file x64\Debug\moc\moc_sender.cpp)
x64\Debug\moc\moc_sender.cpp(249,1): warning C4273: 'SimpleMail::Sender::sslErrors': inconsistent dll linkage
simple-mail\include\sender.h(224,10): message : see previous definition of 'sslErrors' (compiling source file x64\Debug\moc\moc_sender.cpp)