curlwrap 0.1.0

Useful wraps around cURL


To use this package, run the following command in your project's root directory:

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.

Authors:
  • deviator
Dependencies:
none
Versions:
0.1.0 2019-Jul-19
~master 2019-Jul-19
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.4
Short URL:
curlwrap.dub.pm