Bug 13042 – std.net.curl.SMTP doesn't send emails with libcurl-7.34.0 or newer

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-07-04T15:29:00Z
Last change time
2015-06-09T05:14:57Z
Assigned to
nobody
Creator
brocolis

Comments

Comment #0 by brocolis — 2014-07-04T15:29:28Z
libcurl-7.34.0 was released on December 17 2013 [1]. Starting with this version, SMTP requires CURLOPT_UPLOAD option [2]. If CURLOPT_UPLOAD option is not set, libcurl emits VRFY command and no email is sent. [3] [1] http://curl.haxx.se/changes.html#7_34_0 [2] https://github.com/bagder/curl/commit/dac01ff6d788b20e5674e018a79f8a965b1e52bb#diff-65cc11e82be15630f137b0476644a46bL1668 [2] https://github.com/bagder/curl/commit/73a894170bce99ed71fcc764422f52a7cc4d3815 [2] http://curl.haxx.se/libcurl/c/smtp-tls.html [2] http://curl.haxx.se/libcurl/c/smtp-multi.html [2] http://curl.haxx.se/libcurl/c/smtp-ssl.html [2] http://curl.haxx.se/libcurl/c/smtp-mail.html [3] http://curl.haxx.se/libcurl/c/smtp-vrfy.html Fix: - Add 'p.curl.set(CurlOption.upload, 1L);' to std.net.curl.SMTP.initialize or - Add 'smtp.handle.set(CurlOption.upload, 1);' to user code. Example. auto smtp = SMTP("smtps://smtp.gmail.com"); smtp.handle.set(CurlOption.upload, 1); ... smtp.perform();
Comment #1 by brocolis — 2014-07-07T09:24:08Z
Comment #2 by brocolis — 2014-07-07T21:46:13Z
FYI, there's an ongoing discussion on the curl:bugs mailing list. http://curl.haxx.se/mail/tracker-2014-07/0030.html
Comment #3 by github-bugzilla — 2014-07-12T01:42:34Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/3f95468346f1eb42f27d18385ecfd5fae6887339 Fix Issue 13042 - std.net.curl.SMTP doesn't send emails with libcurl-7.34.0 or newer https://github.com/D-Programming-Language/phobos/commit/2206d5075df746a7da28ad3697f6f6514e5217ca Merge pull request #2307 from brocolis/fix13042 Fix Issue 13042 - std.net.curl.SMTP doesn't send emails with libcurl-7.34.0 or newer