# emailjs-com

> Send emails using predefined templates and your private email account

Latest version **3.2.0** (published 2021-07-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install emailjs-com
pnpm add emailjs-com
yarn add emailjs-com
bun add emailjs-com
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2021-07-09 |
| First published | 2016-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 0 |
| Unpacked size | 115.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 142 |
| Author | Sergey Khomushin |
| Maintainers | emailjs |
| Keywords | js email, es6 email, ts email, javascript email, typescript email, emailjs, email templates, send email, send email from js, emailjs-com |

## Links

- npm: https://www.npmjs.com/package/emailjs-com
- Repository: https://github.com/emailjs-com/emailjs-sdk
- Homepage: https://www.emailjs.com
- Issues: https://github.com/emailjs-com/emailjs-sdk/issues
- npm.io page: https://npm.io/package/emailjs-com

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

- 3.2.0 (latest) — 2021-07-09
- 3.1.0 — 2021-06-14
- 3.0.2 — 2021-06-09
- 3.0.1 — 2021-06-09
- 2.6.4 — 2020-11-14
- 2.6.3 — 2020-07-20
- 2.6.2 — 2020-07-20
- 2.6.1 — 2020-07-20
- 2.4.1 — 2019-11-11
- 2.4.0 — 2019-09-16
- 2.3.2 — 2018-11-25
- 2.3.1 — 2018-11-25
- 2.2.4 — 2018-06-16
- 2.2.3 — 2018-06-16
- 2.2.2 — 2018-06-16
- … 30 more at https://npm.io/package/emailjs-com/versions

## README

# EmailJS-COM
SDK for [EmailJS.com](https://www.emailjs.com) users.
\
Use you EmailJS account for sending emails.

## Intro
EmailJS helps sending emails using client side technologies only. No server is required – just connect EmailJS to one of the supported email services, create an email template, and use our Javascript library to trigger an email.

## Quick Start

Install EmailJS SDK using [npm](https://www.npmjs.com/):

``` bash
$ npm install emailjs-com --save
```

Or manually: 

``` html
<script type='text/javascript' src='https://cdn.jsdelivr.net/npm/emailjs-com@3/dist/email.min.js'></script>
<script type='text/javascript'>
   (function(){
      emailjs.init('<YOUR USER ID>');
   })();
</script>
```

## Documentation

Documentation is available at [https://www.emailjs.com/docs](https://www.emailjs.com/docs)

## Examples

__send email__

``` js
var templateParams = {
    name: 'James',
    notes: 'Check this out!'
};

emailjs.send('<YOUR SERVICE ID>','<YOUR TEMPLATE ID>', templateParams)
	.then(function(response) {
	   console.log('SUCCESS!', response.status, response.text);
	}, function(err) {
	   console.log('FAILED...', err);
	});
```

__send form__

``` js
emailjs.sendForm('<YOUR SERVICE ID>','<YOUR TEMPLATE ID>', '#myForm')
	.then(function(response) {
	   console.log('SUCCESS!', response.status, response.text);
	}, function(err) {
	   console.log('FAILED...', err);
	});
```

__Angular X / VueJS / ReactJS__
``` js
import emailjs from 'emailjs-com';

const templateParams = {
    name: 'James',
    notes: 'Check this out!'
};

emailjs.send('<YOUR SERVICE ID>','<YOUR TEMPLATE ID>', templateParams, '<YOUR USER ID>')
	.then((response) => {
	   console.log('SUCCESS!', response.status, response.text);
	}, (err) => {
	   console.log('FAILED...', err);
	});
```

## License

[MIT](./LICENSE)

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