mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 09:12:20 +00:00
24 lines
628 B
C#
24 lines
628 B
C#
using Microsoft.AspNetCore.Http;
|
|
using MimeKit;
|
|
|
|
namespace Utilities.Classes;
|
|
|
|
public class EmailMessage
|
|
{
|
|
public EmailMessage(IEnumerable<string> to, string subject, string content, IFormFileCollection? attachments = null)
|
|
{
|
|
To = [];
|
|
To.AddRange(to.Select(mail => new MailboxAddress(name: mail, address: mail)));
|
|
Subject = subject;
|
|
Content = content;
|
|
Attachments = attachments;
|
|
}
|
|
|
|
public List<MailboxAddress> To { get; set; }
|
|
|
|
public string Subject { get; set; }
|
|
|
|
public string Content { get; set; }
|
|
|
|
public IFormFileCollection? Attachments { get; set; }
|
|
} |