Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @skyring/smtp-transport with all npm packages installed. Try it out:

var smtpTransport = require("@skyring/smtp-transport")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@skyring/smtp-transport v1.0.1

SMTP based transport for skyring

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: '', port: 578 }) ]

Available Environment Variables

SKYRING_SMTP_PORTport of smtp server to connect to25
SKYRING_SMTP_HOSThost name or ip of the smtp
SKYRING_SMTP_AUTHMETHODauth method to login with'PLAIN'
SKYRING_SMTP_USERsmtp login user name'username'
SKYRING_SMTP_PASSsmtp login password'password'
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free