curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

smtp-mail gmail follow example, some issues.

From: jian he via curl-library <>
Date: Thu, 29 Sep 2022 11:58:10 +0530

I use 465, so I follow the SO post instructions:

> curl_easy_setopt(curl,CURLOPT_URL,"smtps://");
> //curl_easy_setopt(curl,CURLOPT_USE_SSL,CURLUSESSL_ALL);
Seems you cannot run this program multi times.
if I run *gcc -Wall -Wextra -pedantic -Wshadow -Ofast curl_stmp1.c -lcurl
&&./a.out *
then the second time, it won't deliver a message.

I need to constantly change the subject.
1st time subject: SMTP example messageTEST TEST01
2nd time subject: SMTP example messageTEST TEST02

not sure why?

Received on 2022-09-29