Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the most used and flexible SMTP Client library in C/C++? [closed]

Tags:

c++

c

smtp

I'm looking to crowd-source this, as I'm having bit of difficulty finding an "industry standard" library for SMTP in C/C++.

I'm looking for the ability to send emails with different MIME formats and attachments. I'd rather not re-invent the wheel by writing a thinly veiled library. But I'd also like to be able to include it in my software without odd licensing issues.

I've read over this related article: What RFCs need to be considered in developing an SMTP client?, regarding the RFCs which are relevant, and I'm looking over the RFCs too.

like image 569
Tango Bravo Avatar asked Jan 24 '12 22:01

Tango Bravo


People also ask

What is a SMTP client?

An SMTP Client allows sending of e-mail notifications using a SMTP server. Simple Mail Transfer Protocol (SMTP) is a widely used protocol for the delivery of e-mails between TCP/IP systems and users. The SMTP Client can send e-mails to various recipients.


2 Answers

My personal favourite is VMime, for C++ only, but the highly reputed libcurl also has SMTP support (as well as many other features).

VMime has a dual license; I think curl has a sort of MIT-style license.

like image 149
Kerrek SB Avatar answered Oct 13 '22 13:10

Kerrek SB


libquickmail has all the features you need. It supports things like multiple alternative bodies and attachments.

like image 20
Brecht Sanders Avatar answered Oct 13 '22 11:10

Brecht Sanders