user63898
user63898

Reputation: 30915

how to use ssl with smtp in c++

im looking for code example or tutorial on what i need to do to code sending email via email client ( that i already have ) that will support ssl authentication i guess using open ssl

Upvotes: 0

Views: 3512

Answers (1)

stribika
stribika

Reputation: 3176

Boost.Asio and the Sockets Library both have SSL support. The latter has SMTP server class but unfortunately no client. I found an example client but it uses the simple C socket.h.

Update: Here are some real working examples. They all support SSL or TLS.

  • Msmtp: An SMTP client and SMTP plugin for mail user agents such as Mutt
  • sSMTP: Extremely simple MTA to get mail off the system to a Mailhub
  • libESMTP: lib that implements the client side of the SMTP protocol

Upvotes: 1

Related Questions