@firstfleet/ffmailer

Email the things, with less code

Usage no npm install needed!

<script type="module">
  import firstfleetFfmailer from 'https://cdn.skypack.dev/@firstfleet/ffmailer';
</script>

README

FFMAILER

This is our libary that wraps a node mailer function

Requirements

  • Environment variable EMAIL_HOST must be set to the email server
  • Email server must be listening on port 25 (hard-coded for now)

Installation

npm install @firstfleet/ffmailer --save

Example
const ffmail = require('@firstfleet/ffmailer');

let toAddress = 'myEmail@firstfleetinc.com';
let fromAddress = 'no-reply@firstfleetinc.com'
let subject = 'Testing'
let body = 'This is the body'

await ffmail.sendMail(toAddress, fromAddress, subject, body);