cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP connection ends with HELP command

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Wed, 28 Jan 2015 20:42:04 +0000

On Wed, 28 Jan 2015, Mariusz Gogulski wrote:

> Every time I try to send an E-Mail first command sent after authentication
> is HELP

This happens if the recipient list is empty or upload has not been set to true.

> recipients = curl_slist_append(recipients, TO);
> recipients = curl_slist_append(recipients, CC);
> curl_easy_setopt(hCurl, CURLOPT_MAIL_FROM, FROM);
 
I believe you are missing:

curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);

Kind Regards

Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-28