Skip to content

uon-team/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Builder

Install

npm i @uon/email

Usage

import { EmailMessage } from '@uon/email';

const msg = new EmailMessage()
    .from('me@me.com')
    .to('example@example.com')
    .subject('Hello World!')
    .html('<h1>Hi!</h1>')
    .text('Hi!')
    .attachment({
        name: 'image.png',
        mime: 'image/png',
        data: img_buffer
    });

const msg_buffer = msg.render();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published