# email-module

> Modulo de Emails

Latest version **1.1.5** (published 2018-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install email-module
pnpm add email-module
yarn add email-module
bun add email-module
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2018-10-19 |
| First published | 2018-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 (+17 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Breno Oliveira |
| Maintainers | brenoviewup, igor-vwp, washington-freitas |
| Keywords | email |

## Links

- npm: https://www.npmjs.com/package/email-module
- Repository: https://github.com/viewup/email-module
- Homepage: https://github.com/viewup/email-module#readme
- Issues: https://github.com/viewup/email-module/issues
- npm.io page: https://npm.io/package/email-module

## Dependencies (9)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [dot](https://npm.io/package/dot.md) ^1.1.2
- [pug](https://npm.io/package/pug.md) ^2.0.3
- [url](https://npm.io/package/url.md) ^0.11.0
- [juice](https://npm.io/package/juice.md) ^4.3.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [moment](https://npm.io/package/moment.md) ^2.22.2
- [dot-emc](https://npm.io/package/dot-emc.md) ^0.1.2
- [nodemailer](https://npm.io/package/nodemailer.md) ^4.6.8

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.1.5 (latest) — 2018-10-19
- 1.1.4 — 2018-10-19
- 1.1.3 — 2018-10-09
- 1.1.2 — 2018-09-29
- 1.1.1 — 2018-09-28
- 1.1.0 — 2018-09-28
- 1.0.5 — 2018-09-28
- 1.0.4 — 2018-09-28
- 1.0.3 — 2018-09-28
- 1.0.2 — 2018-09-21
- 1.0.1 — 2018-09-20

## README

# Módulo de Email

Este módulo tem a intenção de facilitar o processo de envio de email, usando templates e o uso de anexos

## Instalação

npm i email-module

### Uso

importe o email-module no projeto da seguinte forma :

import SendMail from 'email-module';

Metodos disponiveis na versão 1.0.1 ->

sendMail() 


Este método espera como primeiro parametro uma configuração smtp para o envio autenticado de emails ex:

```javascript
{
    "port": 8888,
    "host": "localhost",
}
```


O segundo parametro espera que você envie os cabeçalhos do email e O html do template em questão  ex:
```javascript

{
    from: 'exemplo@exemplo.com.br',
    to: 'exemplo@exemplo.com.br',
    subject: 'subtitulo',
    attatchments:[{  
            filename: 'text3.txt',
            path: '/path/to/file.txt' // stream this file
        }],
    html: '<html></html>',
}
```

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