Add invite and confirmation emails

This commit is contained in:
Nicolas Dorier
2025-11-07 13:09:58 +09:00
parent 88d3e7ad55
commit d7fcd55707
17 changed files with 183 additions and 136 deletions

View File

@@ -8,7 +8,7 @@ using MimeKit;
namespace BTCPayServer
{
/// <summary>
/// Validate address in the format "Firstname Lastname <blah@example.com>" See rfc822
/// Validate address in the format "Firstname Lastname <blah@example.com>" See rfc5322
/// </summary>
public class MailboxAddressValidator
{
@@ -25,7 +25,7 @@ namespace BTCPayServer
public static MailboxAddress Parse(string? str)
{
if (!TryParse(str, out var mb))
throw new FormatException("Invalid mailbox address (rfc822)");
throw new FormatException("Invalid mailbox address (rfc5322)");
return mb;
}
public static bool TryParse(string? str, [MaybeNullWhen(false)] out MailboxAddress mailboxAddress)