https://github.com/rafaelfgx/notificationservice
NotificationService.
https://github.com/rafaelfgx/notificationservice
notification notifications smtp
Last synced: about 1 month ago
JSON representation
NotificationService.
- Host: GitHub
- URL: https://github.com/rafaelfgx/notificationservice
- Owner: rafaelfgx
- License: mit
- Created: 2020-08-22T15:56:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T21:14:20.000Z (7 months ago)
- Last Synced: 2024-11-12T22:22:32.462Z (7 months ago)
- Topics: notification, notifications, smtp
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
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"
}
]
}
```