# @uon/email

> ## Install

Latest version **1.0.2** (published 2022-11-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @uon/email
pnpm add @uon/email
yarn add @uon/email
bun add @uon/email
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-11-28 |
| First published | 2019-07-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | uon-io |

## Links

- npm: https://www.npmjs.com/package/@uon/email
- npm.io page: https://npm.io/package/@uon/email

## Recent versions

- 1.0.2 (latest) — 2022-11-28
- 1.0.1 — 2022-10-29
- 1.0.0 — 2019-07-15

## README

# Email Builder

## Install

```shell
npm i @uon/email
```


## Usage

```typescript

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();


```

---
_Source: https://npm.io/package/@uon/email · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
