cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP recipient issues

From: Daniel Stenberg <daniel_at_haxx.se>
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
re-used!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-07