Interface IEmailService
Namespace: NotifyHub.NotificationService.Application.Interfaces
Assembly: NotifyHub.NotificationService.Application.dll
Syntax
public interface IEmailService
Methods
| Edit this page View SourceGenerateMessage(string, string, string)
Создание письма перед отправкой
Declaration
MimeMessage GenerateMessage(string email, string subject, string messageBody)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Почта получателя |
|
| string | subject | Тема письма |
| string | messageBody | Текст сообщения |
Returns
| Type | Description |
|---|---|
| MimeMessage | Объект MimeMessage для отправки на почту |
SendEmailAsync(string, string, string)
Отправка письма
Declaration
Task SendEmailAsync(string email, string subject, string messageBody)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Почта пользователя |
|
| string | subject | Заголовок сообщения |
| string | messageBody | Сообщение |
Returns
| Type | Description |
|---|---|
| Task |