passwordless-mailgun-delivery

1.0.0 • Public • Published

Passwordless-Mailgun-Delivery

A delivery strategy, for use with Passwordless, that uses Mailgun to deliver tokens via email.

Installation

npm install passwordless-mailgun-delivery --save

Usage example

var mailgunDelivery = require( 'passwordless-mailgun-delivery' );
 
// Pass the below object to passwordless.addDelivery()
mailgunDelivery( {
apiKey: "...",
// Your Mailgun API key
html: "<a href=\"verification_url\">Verify</a>",
// The HTML to send in the body of the message. The string "verification_url" will be replaced with the url below
sender: "Do Not Reply <donotreply@example.com>",
// The email address to send from. This address must end in a domain you have registered with Mailgun
text: "verification_url",
// The text to send in the body of the message. The string "verification_url" will be replaced with the url below
url: "https://www..."
// The url used to validate the user
} )

Release History

  • 1.0.0
    • Initial release

Donate

If you enjoy using this module, please consider donating to support summer camps for the visually impaired.

campbowen.ca/donate/

Distributed under the AGPL 3.0 license.

Readme

Keywords

Package Sidebar

Install

npm i passwordless-mailgun-delivery

Weekly Downloads

0

Version

1.0.0

License

AGPL-3.0

Last publish

Collaborators

  • campbowen.ca