https://github.com/linthithtwe/fluentemail-example
This repository is an example for sending emails using the FluentEmail library in .NET 8
https://github.com/linthithtwe/fluentemail-example
asp-net-core csharp dotnet fluentemail
Last synced: 4 months ago
JSON representation
This repository is an example for sending emails using the FluentEmail library in .NET 8
- Host: GitHub
- URL: https://github.com/linthithtwe/fluentemail-example
- Owner: LinThitHtwe
- Created: 2024-11-25T15:19:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-03T04:04:53.000Z (over 1 year ago)
- Last Synced: 2025-03-30T19:33:23.598Z (about 1 year ago)
- Topics: asp-net-core, csharp, dotnet, fluentemail
- Language: C#
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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/LinThitHtwe/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.