VMime: C++ Mail Library

Tag - howto

Entries feed - Comments feed

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.

Current Version

0.9.0 (2008/10/19)

Download
ChangeLog