# easy-emailer

> A simple and convenient Node.js library for sending emails using Nodemailer.

Latest version **0.0.6** (published 2024-02-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install easy-emailer
pnpm add easy-emailer
yarn add easy-emailer
bun add easy-emailer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2024-02-14 |
| First published | 2024-02-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 (+22 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | anisur046, 0nahid |
| Maintainers | anisur046 |
| Keywords | email, nodemailer, mailer, nodejs, smtp, send-email, email-sender |

## Links

- npm: https://www.npmjs.com/package/easy-emailer
- Repository: https://github.com/AnisurRahman06046/sendAnyEmail
- Homepage: https://github.com/AnisurRahman06046/sendAnyEmail#readme
- Issues: https://github.com/AnisurRahman06046/sendAnyEmail/issues
- npm.io page: https://npm.io/package/easy-emailer

## Dependencies (1)

- [nodemailer](https://npm.io/package/nodemailer.md) ^6.9.9

## 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

- 0.0.6 (latest) — 2024-02-14
- 0.0.5 — 2024-02-09
- 0.0.4 — 2024-02-07
- 0.0.3 — 2024-02-07
- 0.0.2 — 2024-02-07
- 0.0.1 — 2024-02-07

## README

# 

```markdown
# easy-emailer

Easy Emailer is a simple and convenient Node.js library for sending emails using Nodemailer. It provides an easy-to-use interface to send emails with minimal configuration.

## Installation

Install the package using npm:

```bash
npm install easy-emailer

```

## Usage

### Setting up your environment variables

Before using Easy Mailer, make sure to set the following environment variables:

- `NODEMAIL_SERVICE`: The email service provider (e.g., "gmail", "yahoo").
- `NODEMAIL_EMAIL`: Your email address.
- `NODEMAIL_PASSWORD`: Your email account password (2FA generated password).

### Example

```jsx
const { sendAnyEmail } = require('easy-mailer');

const email = 'recipient@example.com';
const subject = 'Test Email';
const htmlContent = '<p>Hello, this is a test email!</p>';

// Sending an email
await sendAnyEmail(email, subject, htmlContent);

```

### API Reference

### `sendAnyEmail(email, subject, htmlContent)`

- `email` (string): The recipient's email address.
- `subject` (string): The subject of the email.
- `htmlContent` (string): The HTML content of the email.

Sends an email using the configured email service.

### Contributing

Contributions are welcome! Please follow the [Contributing Guidelines](https://www.notion.so/CONTRIBUTING.md) for details.

### Issues

If you encounter any issues or have questions, please [open an issue](https://github.com/yourusername/easy-mailer/issues).

### License

This project is licensed under the MIT License - see the [LICENSE](https://www.notion.so/LICENSE) file for details.

### Acknowledgments

- Easy Mailer is built on top of the Nodemailer library.
- Special thanks to the open-source community for their contributions.

## Author

Md Anisur Rahman, Nahid Hassan Bulbul

Feel free to customize this template further based on your project's specific features and requirements.

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