@things-factory/email-base
TypeScript icon, indicating that this package has built-in type declarations

9.0.0-beta.63 • Public • Published

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}) )

/@things-factory/email-base/

    Package Sidebar

    Install

    npm i @things-factory/email-base

    Weekly Downloads

    2,886

    Version

    9.0.0-beta.63

    License

    MIT

    Unpacked Size

    40.9 kB

    Total Files

    17

    Last publish

    Collaborators

    • woo_ram
    • jyp220
    • heartyoh
    • horwengliang95
    • chris_lim7150
    • joekin
    • jinwon
    • jinwon_in_hatio
    • nalshya113
    • shortstop
    • youngwook