refactor(*): Move EmailService inside the main project

This commit is contained in:
Josh Creek
2021-04-04 09:33:42 +01:00
parent 142c48323c
commit b89a7ab7aa
13 changed files with 23 additions and 43 deletions
@@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Http;
using MimeKit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace My.ProjectName.Services.EmailService
{
public class Message
{
public List<MailboxAddress> To { get; set; }
public string Subject { get; set; }
public string Content { get; set; }
public IFormFileCollection Attachments { get; set; }
public Message(IEnumerable<string> to, string subject, string content, IFormFileCollection attachments = null)
{
To = new List<MailboxAddress>();
To.AddRange(to.Select(x => new MailboxAddress(x)));
Subject = subject;
Content = content;
Attachments = attachments;
}
}
}