raku-mailgun

A very incomplete mailgun module. PRs welcome.

Mailgun

raku-mailgun

A very incomplete mailgun module. All it does is send messages.

Usage:

use Mailgun;

my $msg = Message.new(
  :from<[email protected]>,
  :to<[email protected]>,
  :subject("you suck"),
  :text("haha you read this"),
);

my $client = Client.new(
  :domain<zef.pm>,
  :api-key<rofl>
);

dd $client.send($msg);
# {:id("<some-numbers\@zef.pm>"),
#  :message("Queued. Thank you.")
# }

Messages are defaultable so you don't need to provide the same info over and over:

my &email-generator = Message.new(
  :from<[email protected]>,
  :subject<Welcome!>,
).defaults;

# some time in the future:

my $msg = email-generator(:to('some@one.'), :body('Hello, world!'));

raku-mailgun v0.0.1

A very incomplete mailgun module. PRs welcome.

Authors

    License

    Dependencies

    Base64Net::HTTPIO::Socket::SSLJSON::Fast

    Test Dependencies

    Provides

    • Mailgun

    Documentation

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.