curl / Mailing Lists / curl-library / Single Mail


curl and PGP/GPG

From: Alain Reymond <>
Date: Fri, 25 May 2018 14:53:41 +0200


is there a way to use cURL to send emails encrypted with GPG ?
I would like to send emails to people having a pgp key. The email is
composed of a text + html body and attached files (pdf or doc).
A C program receives the different elements (from, to, subject, body
text, body html, and list of attachments) and uses curl_formadd to
prepare the mail which is later sent via an html service.

My question is : how can I encrypt the email using pgp ?

Any help would be appreciated.

Kind regards,


Received on 2018-05-25