@uon/email
v1.0.2
Published
## Install
Downloads
4
Readme
Email Builder
Install
npm i @uon/email
Usage
import { EmailMessage } from '@uon/email';
const msg = new EmailMessage()
.from('[email protected]')
.to('[email protected]')
.subject('Hello World!')
.html('<h1>Hi!</h1>')
.text('Hi!')
.attachment({
name: 'image.png',
mime: 'image/png',
data: img_buffer
});
const msg_buffer = msg.render();