-
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
Showing
1 changed file
with
28 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,28 @@ | ||
# FluentEmail Example | ||
|
||
This repository is an example for sending emails using the [FluentEmail](https://github.com/lukencode/FluentEmail) library. | ||
|
||
## Prerequisites | ||
|
||
- SMTP server credentials (e.g., Gmail, Outlook, or custom server) | ||
|
||
## Setup | ||
|
||
**Clone the Repository**: | ||
```bash | ||
git clone https://github.com/your-username/FluentEmailExample.git | ||
``` | ||
|
||
**Configure Environment Variables**: Add environment variables in a ```.env``` file inside ```FluentEmail.Example.Api``` project: | ||
|
||
```bash | ||
EMAIL_HOST=smtp.example.com | ||
EMAIL_PORT=587 | ||
EMAIL=your-email@example.com | ||
DEFAULT_EMAIL=your-email@example.com | ||
EMAIL_PASSWORD=your-email-password | ||
``` | ||
|
||
## Usage | ||
|
||
You can check out the [postman collections](https://github.com/LinThitHtwe/FluentEmail.Example/blob/main/FluentEmail.Example.postman_collection.json) for calling the endpoints. |