public override IEmailRecipients GetRecipients() { return(new EmailRecipients( to: PendingUser.EmailAllowed ? new[] { PendingUser.ToMailAddress() } : new MailAddress[0], replyTo: new[] { Organization.ToMailAddress() })); }
public override IEmailRecipients GetRecipients() { if (!PendingUser.EmailAllowed) { return(EmailRecipients.None); } return(new EmailRecipients( to: new[] { PendingUser.ToMailAddress() }, replyTo: new[] { Organization.ToMailAddress() })); }