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