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

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