cURL / Mailing Lists / curl-library / Single Mail


RE: SMTP connection ends with HELP command

From: Steve Holme <>
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


List admin:
Received on 2015-01-28