Skip to content
No description, website, or topics provided.
D
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
source/curlwrap
.gitignore
README.md
dub.sdl
dub.selections.json

README.md

cURL wraps

For using you need installed libcurl.

sendmail

Simple example:

import curlwrap.sendmail;

auto sets = SMTPSettings("smtp.example.com", 465, "user@example.com", "userpassword");
auto ms = new MailSender(sets);

auto from = Mail.User("user@example.com", "noreply");
auto to = Mail.User("john@example.com", "Mr. John");

ms.send(Mail(from, [to], "Subject", "Mail body", Clock.currTime));

Tested on:

  • gmail.com (with application password)
  • yandex.ru
  • mail.ru
  • rambler.ru

See sendmail.d for details and example for working example.

You can’t perform that action at this time.