cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: mail vrfy 252 => quit and res = CURLE_OK

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Mon, 23 May 2016 16:16:38 +0100

On Mon, 23 May 2016, andreas graeper wrote:

> i try to send emails and get 252 as response to vrfy. then quit is sent and
> curl_easy_perform() returns CURLE_OK is there a way to avoid vrfy or not to
> stop when receiving 252. why perform returns OK when message actually has
> not been sent ?

I suspect you have forgot to set the upload flag:

curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);

https://curl.haxx.se/libcurl/c/smtp-mail.html

Kind Regards

Steve

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-23