An open API service indexing awesome lists of open source software.

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

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.