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

https://github.com/rafaelfgx/notificationservice

NotificationService.
https://github.com/rafaelfgx/notificationservice

notification notifications smtp

Last synced: about 1 month ago
JSON representation

NotificationService.

Awesome Lists containing this project

README

        

# NotificationService

## Run

Command Line

#### Prerequisites

* [.NET SDK](https://dotnet.microsoft.com/download)

#### Steps

1. Open directory **source\NotificationService** in command line and execute **dotnet run**.
3. Open .

Visual Studio Code

#### Prerequisites

* [.NET SDK](https://dotnet.microsoft.com/download)
* [Visual Studio Code](https://code.visualstudio.com)
* [C# Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)

#### Steps

1. Open **source** directory in Visual Studio Code.
2. Press **F5**.

Visual Studio

#### Prerequisites

* [Visual Studio](https://visualstudio.microsoft.com)

#### Steps

1. Open **source\NotificationService.sln** in Visual Studio.
2. Set **NotificationService** as startup project.
3. Press **F5**.

## Fake SMTP Service

[Ethereal](https://ethereal.email)

## Example

### AppSettings.json

```json
{
"Smtp": {
"Host": "smtp.ethereal.email",
"Port": 587,
"Timeout": 10,
"Ssl": true,
"User": "[email protected]",
"Password": "Password",
"Display": "Notification Service"
}
}

```

### Post

https://localhost:5000/emails

```json
{
"subject": "Subject",
"body": "Body",
"files": [
{
"Name": "Attachment.txt",
"Bytes": "QXR0YWNobWVudA=="
}
],
"to": [
{
"Address": "[email protected]",
"Display": "Name 1 Surname 1"
}
],
"copyTo": [
{
"Address": "[email protected]",
"Display": "Name 2 Surname 2"
}
],
"blindCopyTo": [
{
"Address": "[email protected]",
"Display": "Name 3 Surname 3"
}
]
}
```