cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP recipient issues

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Thu, 7 Jun 2012 18:33:15 +0100

Hi again,

On Thu, 7 Jun 2012, Steve Holme wrote:

> The other thing you could do is to loop round in your
> code calling libcurl, sending the same email (except
> for a line or two of header information) with one
> address at a time rather than putting all recipients in
> the recipient list.

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 ;-)

Kind Regards

Steve

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