Skip to content

Commit

Permalink
filled in the required data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Khomushin committed Oct 29, 2022
1 parent b4b2b3a commit f37e7d9
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

* Official EmailJS SDK for Flutter
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Official EmailJS SDK for Flutter

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

## Disclaimer

This is a flutter-only version, otherwise use
the [REST API](https://www.emailjs.com/docs/rest-api/send/).

## Links

[Official SDK Docs](https://www.emailjs.com/docs)

## Intro

EmailJS helps to send 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 SDK
to trigger an email.

## Usage

Install EmailJS SDK:

```bash
$ flutter pub add emailjs
```

## Examples

**send email**

```dart
import package:emailjs/emailjs.dart
Map<String, dynamic> templateParams = {
'name': 'James',
'notes': 'Check this out!'
};
try {
await EmailJS.send('<YOUR_SERVICE_ID>','<YOUR_TEMPLATE_ID>', templateParams, '<YOUR_PUBLIC_KEY>');
print('SUCCESS!');
} catch (error) {
print(error.toString());
}
```
20 changes: 20 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: emailjs
description: Official EmailJS SDK for Flutter
version: 0.0.1
homepage: https://www.emailjs.com
repository: https://github.com/emailjs-com/emailjs-flutter

environment:
sdk: '>=2.18.2 <3.0.0'
flutter: ">=1.17.0"

dependencies:
flutter:
sdk: flutter
http: ^0.13.5

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
mocktail: ^0.3.0

0 comments on commit f37e7d9

Please sign in to comment.