Socket
Socket
Sign inDemoInstall

@things-factory/email-base

Package Overview
Dependencies
2
Maintainers
10
Versions
628
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @things-factory/email-base

Module to send email using SMTP configuration.


Version published
Weekly downloads
2.5K
decreased by-62.89%
Maintainers
10
Created
Weekly downloads
 

Readme

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

Last updated on 21 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc