www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18316] New: std.net.curl.SMTP.mailTo fails to compile


          Issue ID: 18316
           Summary: std.net.curl.SMTP.mailTo fails to compile
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: zan77137 nifty.com

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("from.addr gmail.com", "password");
        smtp.mailTo = ["<to.addr gmail.com>"]; // <-- NG
        smtp.mailFrom = "<from.addr gmail.com>";
        smtp.message = "Example Message";
$ 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

This is probably caused by this commit:
mailTo seems to be left out of these changes.

Jan 27 2018