Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments
Sebastiaan Koppe via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue Sep 29 01:17:41 PDT 2015
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
vibe.mail.SMTPClientSettings.
http://vibed.org/api/vibe.mail.smtp/SMTPClientSettings
In my tests I used rackspace's mail servers.
```
auto settings = new
SMTPClientSettings("secure.emailsrvr.com",587);
settings.authType = SMTPAuthType.login;
settings.connectionType = SMTPConnectionType.startTLS;
settings.tlsValidationMode = TLSPeerValidationMode.requireCert;
settings.username = "info at 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.
More information about the Digitalmars-d-announce
mailing list