forked from ddrilling/AsbCloudServer
27 lines
958 B
C#
27 lines
958 B
C#
using System.Collections.Generic;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
/// <summary>
|
|
/// Сервис отправки сообщений
|
|
/// </summary>
|
|
public interface IEmailService
|
|
{
|
|
/// <summary>
|
|
/// добавить сообщение на отправку нескольким пользователям
|
|
/// </summary>
|
|
/// <param name="addresses"></param>
|
|
/// <param name="subject"></param>
|
|
/// <param name="htmlBody"></param>
|
|
void EnqueueSend(IEnumerable<string> addresses, string subject, string htmlBody);
|
|
|
|
/// <summary>
|
|
/// добавить сообщение на отправку одному пользователю
|
|
/// </summary>
|
|
/// <param name="address"></param>
|
|
/// <param name="subject"></param>
|
|
/// <param name="htmlBody"></param>
|
|
void EnqueueSend(string address, string subject, string htmlBody);
|
|
}
|
|
}
|