VMime: MIME and Mail Library for C++

Saturday, Apr 10 2010

Connecting to GMail SMTP

Some users fequently ask me how to connect to GMail SMTP service with VMime. You have to connect to server using SMTP protocol (not SMTPS), and set the connection.tls property to true to initiate a secured connection using STARTTLS.

The following code is known to work:

vmime::utility::url url("smtp://smtp.gmail.com");
vmime::ref tr = session->getTransport(url);
tr->setProperty("connection.tls", true);
tr->setProperty("auth.username", "gmail-login");
tr->setProperty("auth.password", "gmail-password");
tr->setProperty("options.need-authentication", true);
tr->setCertificateVerifier(yourCertificateVerifier);

Wednesday, Mar 3 2010

Compiling VMime on MinGW/MSYS

For those using VMime on Windows platform, someone has written a HOWTO to get VMime compiled, with all its dependencies, using MinGW. It's there: HOWTO: Compiling libvmime on MinGW/MSYS.

Thursday, Apr 17 2008

Messages actually not deleted from a folder

Q: I called deleteMessage() to delete a message from a store, but the message is not actually deleted!

A: Call folder->close(true) to expunge messages marked as deleted.

Current Version

0.9.1 (2010/11/16)

Download
ChangeLog