-
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
1 parent
0209e7a
commit e681760
Showing
3 changed files
with
48 additions
and
2 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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## 0.0.2 | ||
|
||
## Docs | ||
|
||
- Added propper docs in README.md | ||
|
||
## 0.0.1 | ||
|
||
- Initial version. |
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 |
---|---|---|
@@ -1,2 +1,41 @@ | ||
A sample command-line application with an entrypoint in `bin/`, library code | ||
in `lib/`, and example unit test in `test/`. | ||
# impaktfull_mailer | ||
|
||
A dart library for sending emails on backend with a template engine. | ||
|
||
## Disclaimer | ||
|
||
**impaktfull_mailer is still in unstable & untested. everything under <1.0.0 should not be used unless you want to test it** | ||
|
||
## Setup | ||
|
||
### Add dependency to pubspec | ||
|
||
[![pub package](https://img.shields.io/pub/v/impaktfull_mailer.svg)](https://pub.dartlang.org/packages/impaktfull_mailer) | ||
|
||
``` | ||
dependencies: | ||
impaktfull_mailer: `latest_version` | ||
``` | ||
|
||
### Send an email | ||
|
||
```dart | ||
/// Create the mailer | ||
final mailer = ImpaktfullMailer( | ||
mailSenderService: BrevoMailSenderService( | ||
email: 'your_brevo_smtp_email', | ||
password: 'your_brevo_smtp_password', | ||
), // or any other mail sender service | ||
variableReplacer: BracketVariableReplacer(), // default | ||
defaultLocale: 'en',// default | ||
); | ||
/// Create the template | ||
final template = YourTemplate(); | ||
/// Send the email | ||
await mailer.sendEmailTemplate( | ||
fromEmail: '[email protected]', | ||
to: ['[email protected]'], | ||
subject: 'Test from the impaktfull_mailer dart package', | ||
template: template, | ||
); | ||
``` |
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