feat(*): Add base project files

This commit is contained in:
2021-03-14 12:57:18 +00:00
parent 64b6a84252
commit 1b5a86a401
141 changed files with 45005 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Http;
using MimeKit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 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;
}
}
}