🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@things-factory/email-base

Package Overview
Dependencies
Maintainers
15
Versions
822
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.

Source
npmnpm
Version
3.0.0-beta.53
Version published
Weekly downloads
498
-36.8%
Maintainers
15
Weekly downloads
 
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. no-reply@hatiolab.com)

  • add member into shared mailbox
  • call sendEmail function with shared mailbox address as sender paramerter
    (e.g. sendEmail({sender: no-reply@hatiolab.com}) )

FAQs

Package last updated on 29 Oct 2020

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