curlwrap 0.1.0
Useful wraps around cURL
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
cURL wraps
For using you need installed libcurl
.
sendmail
Simple example:
import curlwrap.sendmail;
auto sets = SMTPSettings("smtp.example.com", 465, "[email protected]", "userpassword");
auto ms = new MailSender(sets);
auto from = Mail.User("[email protected]", "noreply");
auto to = Mail.User("[email protected]", "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.
- Registered by Oleg
- 0.1.0 released 5 years ago
- deviator/curlwrap
- MIT
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.0 2019-Jul-19 ~master 2019-Jul-19 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
26 downloads total
-
- Score:
- 0.7
- Short URL:
- curlwrap.dub.pm