On Tuesday, 29 September 2015 at 06:18:32 UTC, Suliman wrote:
Does it's work with anything except localhost?
Could you add example of sending email with gmail?
It is in the settings variable. Look at
In my tests I used rackspace's mail servers.
auto settings = new
settings.authType = SMTPAuthType.login;
settings.connectionType = SMTPConnectionType.startTLS;
settings.tlsValidationMode = TLSPeerValidationMode.requireCert;
settings.username = "i...@example.com";
settings.password = "123456789";
Replace with whatever gmail has.
The only problem I had was with `settings.tlsValidationMode`. It
failed with the certificates so I had to set it to `requireCert`.
But I wouldn't do that.