1.0.1 • Published 7 years ago

@skyring/smtp-transport v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

skyring-smtp-transport Build Status

SMTP Transport for node-skyring

The smtp transport exposes a configurable transport function. As a result, it must be manually passed to a skyring server, and cannot be auto loaded. Environment variables can also be used to configure the transport instead of passing configuration in directly

const Skyring = require('skyring')
const SMTP = require('@skyring/smtp-transport')

new Skyring({
  seeds: ['localhost:3456']
, node: {host: 'localhost', port: 3456}
, transports: [ SMTP({ host: 'smtp.mail.com', port: 578 }) ]
})

Available Environment Variables

VariableUsabageExample
SKYRING_SMTP_PORTport of smtp server to connect to25
SKYRING_SMTP_HOSThost name or ip of the smtp serversmtp.mailserver.com
SKYRING_SMTP_AUTHMETHODauth method to login with'PLAIN'
SKYRING_SMTP_USERsmtp login user name'username'
SKYRING_SMTP_PASSsmtp login password'password'