2022-04-11 18:00:34 +05:00
|
|
|
|
using System.Collections.Generic;
|
2022-02-28 14:44:26 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-05 17:52:42 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сервис отправки сообщений
|
|
|
|
|
/// </summary>
|
2022-02-28 14:44:26 +05:00
|
|
|
|
public interface IEmailService
|
|
|
|
|
{
|
2022-08-05 17:52:42 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// добавить сообщение на отправку нескольким пользователям
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="addresses"></param>
|
|
|
|
|
/// <param name="subject"></param>
|
|
|
|
|
/// <param name="htmlBody"></param>
|
2022-02-28 14:44:26 +05:00
|
|
|
|
void EnqueueSend(IEnumerable<string> addresses, string subject, string htmlBody);
|
2022-08-05 17:52:42 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// добавить сообщение на отправку одному пользователю
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="address"></param>
|
|
|
|
|
/// <param name="subject"></param>
|
|
|
|
|
/// <param name="htmlBody"></param>
|
2022-05-04 15:02:12 +05:00
|
|
|
|
void EnqueueSend(string address, string subject, string htmlBody);
|
2022-02-28 14:44:26 +05:00
|
|
|
|
}
|
|
|
|
|
}
|