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