/NotificationService

NotificationService.

Primary LanguageC#MIT LicenseMIT

NotificationService

Run

Command Line

Prerequisites

Steps

  1. Open directory source\NotificationService in command line and execute dotnet run.
  2. Open https://localhost:5000.
Visual Studio Code

Prerequisites

Steps

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

Prerequisites

Steps

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

Fake SMTP Service

Ethereal

Example

AppSettings.json

{
    "Smtp": {
        "Host": "smtp.ethereal.email",
        "Port": 587,
        "Timeout": 10,
        "Ssl": true,
        "User": "user.name@ethereal.email",
        "Password": "Password",
        "Display": "Notification Service"
    }
}

Post

https://localhost:5000/emails

{
    "subject": "Subject",
    "body": "Body",
    "files": [
        {
            "Name": "Attachment.txt",
            "Bytes": "QXR0YWNobWVudA=="
        }
    ],
    "to": [
        {
            "Address": "name1.surname1@ethereal.email",
            "Display": "Name 1 Surname 1"
        }
    ],
    "copyTo": [
        {
            "Address": "name2.surname2@ethereal.email",
            "Display": "Name 2 Surname 2"
        }
    ],
    "blindCopyTo": [
        {
            "Address": "name3.surname3@ethereal.email",
            "Display": "Name 3 Surname 3"
        }
    ]
}