cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: IMAP, POP3, SMTP and their TLS siblings

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Fri, 27 Nov 2009 10:33:13 +0100

 
Daniel Stenberg wrote:

> The new protocols are as the subject says: IMAP, POP3 and SMTP. They
will include their SSL/TLS-based variations IMAPS, POP3S and SMTPS as
well as the "STARTTLS" approach to upgrade from plain connection to
SSL/TLS.

This is great! I would be very happy to try the SMTP protocol.

> SMTP is for sending data to a server, and unfortunately SMTP doesn't
have a defined URL syntax so I'm still a bit undecided on how it'll work
exactly.
> There's a mailto: URL format, but that doesn't really work for SMTP.
I'm open for suggestions from you libcurl hackers on this!

I started attempting to implement SMTP(S) months ago, but the work is
stalled since then due to lack of time, and some libcurl procedures
used have been altered too much to resurrect this work :-(
In this attempt, I just noted that libcurl cannot do the job of a real
SMTP server transmitter. In particular, it cannot retry temporary errors
(like the ones caused by greylisting) after some delay. As a
consequence, I think libcurl should be used only as a simple
transmitter, like the ones you can find in any mail client, and thus
connect to a predefined (in URL?) forwarder MTA rather than trying to
process DNS MX records. That is why I rejected the "mailto" URL schema
and started implementing a very simple URL
(smtp[s]://[user[:password]@]host[:port]) in addition with two more
CURLOPTs: CURLOPT_MAIL_SENDER (char *) and CURLOPT_MAIL_RECIPIENTS
(struct curl_slist *).

I'm really glad you decided to step into SMTP !

Cheers,
Patrick
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-27

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET