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.
Re: smtp-mail gmail follow example, some issues.
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Adrian Lewandowski via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 29 Sep 2022 09:00:07 +0200
Hi,
I have also observed similar behavior once.
My guess is that, when you send multiple emails with the same
Date, Message-ID, and Subject [this is what I did] gmail fails to recognize
that there
is a new message on the server.
Best wishes,
Adrian
czw., 29 wrz 2022 o 08:32 jian he via curl-library <
curl-library_at_lists.haxx.se> napisaĆ(a):
> https://curl.se/libcurl/c/smtp-mail.html
>
> https://stackoverflow.com/questions/37092597/sending-an-email-with-libcurl-smtp-with-gmail-login-denied
>
> I use 465, so I follow the SO post instructions:
>
>> curl_easy_setopt(curl,CURLOPT_URL,"smtps://smtp.gmail.com:465");
>> //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?
> --
> Unsubscribe: https://lists.haxx.se/listinfo/curl-library
> Etiquette: https://curl.se/mail/etiquette.html
>
Date: Thu, 29 Sep 2022 09:00:07 +0200
Hi,
I have also observed similar behavior once.
My guess is that, when you send multiple emails with the same
Date, Message-ID, and Subject [this is what I did] gmail fails to recognize
that there
is a new message on the server.
Best wishes,
Adrian
czw., 29 wrz 2022 o 08:32 jian he via curl-library <
curl-library_at_lists.haxx.se> napisaĆ(a):
> https://curl.se/libcurl/c/smtp-mail.html
>
> https://stackoverflow.com/questions/37092597/sending-an-email-with-libcurl-smtp-with-gmail-login-denied
>
> I use 465, so I follow the SO post instructions:
>
>> curl_easy_setopt(curl,CURLOPT_URL,"smtps://smtp.gmail.com:465");
>> //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?
> --
> Unsubscribe: https://lists.haxx.se/listinfo/curl-library
> Etiquette: https://curl.se/mail/etiquette.html
>
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2022-09-29