cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl and SMTP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Dec 2010 13:41:39 +0100 (CET)

On Wed, 17 Nov 2010, William Betts wrote:

> Sorry if this has been addressed, but I couldn't find any information about
> it. How do you send the data portion of the transaction? I can send MAIL
> FROM and RCPT TO just fine, but sending the actual mail is stumping me.

It's a "normal" upload, so you provide it with the CURLOPT_READFUNCTION and
CURLOPT_READDATA options.

See also the smtp-multi.c example.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-03