feature: expression helpers - basic email sending

This commit is contained in:
Gary Sharp
2024-05-16 22:11:10 +10:00
parent bb846d14c5
commit 78b7b059ea
5 changed files with 47 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ namespace Disco.Models.Services.Messaging
public Email(string to, string subject, string body)
: this()
{
To.Add(to);
To.AddRange(ParseEmailAddresses(to));
Subject = subject;
Body = body;
}
@@ -4,5 +4,6 @@
{
public string Name { get; set; }
public byte[] Data { get; set; }
public string MediaType { get; set; }
}
}