-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sergey Khomushin
committed
Oct 29, 2022
1 parent
b4b2b3a
commit f37e7d9
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## 0.0.1 | ||
|
||
* Official EmailJS SDK for Flutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |