-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIEmailService.cs
More file actions
29 lines (25 loc) · 875 Bytes
/
IEmailService.cs
File metadata and controls
29 lines (25 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.IO;
using System.Net.Mail;
using System.Threading.Tasks;
namespace RamsonDevelopers.UtilEmail
{
/// <summary>
/// Interface for Dependency Injection
/// </summary>
public interface IEmailService
{
/// <summary>
/// Send Email using the credentials passed.
/// </summary>
/// <param name="request">The request object of the Email Content</param>
/// <returns>The main Mail message that was send using SMTP</returns>
Task<MailMessage> SendEMailAsync(SendEmailRequest request);
/// <summary>
/// Send Html Template message
/// </summary>
/// <param name="mailRequest"></param>
/// <returns></returns>
/// <exception cref="FileNotFoundException"></exception>
Task<MailMessage> SendTemplateMessage(SendEmailRequest mailRequest);
}
}