@near-solution/email-base

1.0.1 • 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. no-reply@nearsolution.co.kr)

  1. add member into shared mailbox
  2. call sendEmail function with shared mailbox address as sender paramerter
    (e.g. sendEmail({sender: no-reply@nearsolution.co.kr}) )

Readme

Keywords

none

Package Sidebar

Install

npm i @near-solution/email-base

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.23 kB

Total Files

17

Last publish

Collaborators

  • kanghw