cURL / Mailing Lists / curl-library / Single Mail


RE: [PATCH] SMTP Modifications

From: Steve Holme <>
Date: Wed, 24 Aug 2011 21:25:53 +0100

Dear all,

Please find attached my next modification for the SMTP protocol - which adds
the ability to specify whether authenticated connections (AUTH PLAIN and
AUTH LOGIN) send the initial response in the AUTH command or in the next
command. This can be set via the CURLOPT_MAIL_SINGLE_AUTH option but
defaults to TRUE to maintain compatibility with versions of curl prior to

This is not implemented for CRAM-MD5 as this authentication method does not
support the initial response in the AUTH command (as the server has to send
a challenge in the response to "AUTH CRAM-MD5").

More information about the AUTH command can be found at: - Section 4.1

Any comments, suggestions or random pieces of advice are always welcome ;-)

Kind Regards


Received on 2011-08-24