Bug 18316 – std.net.curl.SMTP.mailTo fails to compile

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2018-01-27T16:50:53Z
Last change time
2018-02-02T12:54:48Z
Assigned to
No Owner
Creator
SHOO

Comments

Comment #0 by zan77137 — 2018-01-27T16:50:53Z
Following code doesn't work: ------- void main() { // from example of https://dlang.org/phobos/std_net_curl.html#.SMTP import std.net.curl; // Send an email with SMTPS auto smtp = SMTP("smtps://smtp.gmail.com"); smtp.setAuthentication("[email protected]", "password"); smtp.mailTo = ["<[email protected]>"]; // <-- NG smtp.mailFrom = "<[email protected]>"; smtp.message = "Example Message"; smtp.perform(); } ------ $ dmd -run main P:\app\dmd\bin64\..\import\std\net\curl.d(4055): Error: no property tempCString for type const(char)[] main.d(8): Error: template instance std.net.curl.SMTP.mailTo!() error instantiat ing ------ This is probably caused by this commit: https://github.com/dlang/phobos/commit/ca0777a1a7a2ae9cc6f287a6fe8482e61047afb2 mailTo seems to be left out of these changes.
Comment #1 by github-bugzilla — 2018-01-27T21:29:52Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/80f4709a980f9b5899b46063aa926e33bd2426bf Fix Issue 18316 - std.net.curl.SMTP.mailTo fails to compile https://github.com/dlang/phobos/commit/5e04cb855f7dbf34ed42e5af1ddb6316f9aca157 Merge pull request #6079 from shoo/fix_Issue18316 Fix Issue 18316 - std.net.curl.SMTP.mailTo fails to compile
Comment #2 by greensunny12 — 2018-02-02T12:54:48Z
*** Issue 18356 has been marked as a duplicate of this issue. ***