1.3.0 • Published 4 years ago

@moongift/customers-mail-cloud v1.3.0

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Customers Mail Cloud for Node.js

Install

npm i @moongift/customers-mail-cloud

Usage

Init

const client = new CustomersMailCloud(api_user, api_key)

Send mail

const res = await client
  .trial()
  .setFrom(config.from.name, config.from.address)
  .addTo(config.to.name, config.to.address)
  .setSubject('テストメール')
  .setText('これはNode.jsライブラリから送信されたテストメールです')
  .addAttachments('./test.png')
  .addAttachments('./package.json')
  .send()

Licese

MIT