Skip to content

Commit f37e7d9

Browse files
author
Sergey Khomushin
committed
filled in the required data
1 parent b4b2b3a commit f37e7d9

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* Official EmailJS SDK for Flutter

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Official EmailJS SDK for Flutter
2+
3+
SDK for [EmailJS.com](https://www.emailjs.com) customers.
4+
\
5+
Use you EmailJS account for sending emails.
6+
7+
## Disclaimer
8+
9+
This is a flutter-only version, otherwise use
10+
the [REST API](https://www.emailjs.com/docs/rest-api/send/).
11+
12+
## Links
13+
14+
[Official SDK Docs](https://www.emailjs.com/docs)
15+
16+
## Intro
17+
18+
EmailJS helps to send emails using client-side technologies only.
19+
No server is required – just connect EmailJS to one of the supported
20+
email services, create an email template, and use our SDK
21+
to trigger an email.
22+
23+
## Usage
24+
25+
Install EmailJS SDK:
26+
27+
```bash
28+
$ flutter pub add emailjs
29+
```
30+
31+
## Examples
32+
33+
**send email**
34+
35+
```dart
36+
import package:emailjs/emailjs.dart
37+
38+
Map<String, dynamic> templateParams = {
39+
'name': 'James',
40+
'notes': 'Check this out!'
41+
};
42+
43+
try {
44+
await EmailJS.send('<YOUR_SERVICE_ID>','<YOUR_TEMPLATE_ID>', templateParams, '<YOUR_PUBLIC_KEY>');
45+
print('SUCCESS!');
46+
} catch (error) {
47+
print(error.toString());
48+
}
49+
```

pubspec.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: emailjs
2+
description: Official EmailJS SDK for Flutter
3+
version: 0.0.1
4+
homepage: https://www.emailjs.com
5+
repository: https://github.com/emailjs-com/emailjs-flutter
6+
7+
environment:
8+
sdk: '>=2.18.2 <3.0.0'
9+
flutter: ">=1.17.0"
10+
11+
dependencies:
12+
flutter:
13+
sdk: flutter
14+
http: ^0.13.5
15+
16+
dev_dependencies:
17+
flutter_test:
18+
sdk: flutter
19+
flutter_lints: ^2.0.0
20+
mocktail: ^0.3.0

0 commit comments

Comments
 (0)