Socket
Socket
Sign inDemoInstall

@things-factory/email-base

Package Overview
Dependencies
Maintainers
0
Versions
717
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@things-factory/email-base

Module to send email using SMTP configuration.


Version published
Maintainers
0
Created
Source

email-base

1. email connection configuration

{app_root}/config.[mode].js

module.exports = {
  email: {
    host: 'smtp.office365.com',
    port: 587,
    secure: false, // true for 465, false for other ports
    auth: {
      user: 'account@emailhost',
      pass: 'password'
    },
    secureConnection: false,
    tls: {
      ciphers: 'SSLv3'
    },
    sender: 'sender-account@emailhost' // if not set, auth.user will be the sender
  }
}

2. send email as virtual user (e.g. noreply@hatiolab.com)

  1. add member into shared mailbox
  2. call sendEmail function with shared mailbox address as sender paramerter
    (e.g. sendEmail({sender: noreply@hatiolab.com}) )

FAQs

Package last updated on 05 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc