node-tcrouter
  • Welcome
  • Getting Started
  • Javascript Docs
    • TCRouter
  • Guides
    • Status Information
    • Sending Text Messages
    • Receive Text Messages
    • Device Connection Status
    • Control IO
    • Sending Emails
    • Control VPN
  • Hardware
    • Overview
  • Setup
    • Setup Overview
    • Socket Server
    • Enable SMS
    • Enable Email
    • Setup VPN
Powered by GitBook
On this page

Was this helpful?

  1. Guides

Sending Emails

The node-tcrouter package supports sending emails to multiple recipients. Note that only basic text is supported for email body content. Please note that the email feature must be setup through the web based management portal of the device before this functionality will work.

const tcr = require(" @phoenixcontactusa/node-tcrouter");

var TCRouter = new tcr("192.168.1.1", 1432, 3000);

//Send an email
//to,subject,body,cc
TCRouter.sendEmail('john@doe.com','Test Email','Hello World','jane@doe.com')
  .then(res => {
    console.log(res);
  })
  .catch(e => {
    console.log(e);
  });
PreviousControl IONextControl VPN

Last updated 5 years ago

Was this helpful?