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

            return(new EmailRecipients(
                       to: new[] { PendingUser.ToMailAddress() },
                       replyTo: new[] { Organization.ToMailAddress() }));
        }