cURL / Mailing Lists / curl-library / Single Mail


RE: SMTP recipient issues

From: Daniel Stenberg <>
Date: Thu, 7 Jun 2012 19:41:56 +0200 (CEST)

On Thu, 7 Jun 2012, Steve Holme wrote:

> If you do decide to do this, I would also recommend you first connect to
> your mail server with CURLOPT_CONNECT_ONLY in the first curl_easy_perform(),
> then do each of the send mails in their own curl_easy_peform()'s. That way
> you only connect and log into your mail server once ;-)

No need for CURLOPT_CONNECT_ONLY to achieve that. If only the easy handle is
re-used for subsequent requests, the connection will be kept open and get

List admin:
Received on 2012-06-07