cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Specifing authentication types in SMTP

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Tue, 3 Apr 2012 10:34:46 +0200

 
Steve Holme wrote:

> 1) Use CURLOPT_HTTPAUTH (so --anyauth, --ntlm, etc. will work)
> 2) Introduce a new option CURLOPT_SMTPAUTH

A third solution would be to have a callback for mechanism selection,
with the server-provided available mechanisms in parameter. This is a
bit heavy, but it offers the advantage to really interact with the
server. The 2 other solutions force you to select a mechanism before
knowing which ones are supported by the server.

Patrick

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