Skip to content

deviator/curlwrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages