private async Task SendEmail(TrelloMemberInfo member, string email)
        {
            var from = new MailAddress(deployEmailAddress, "Deploy status");
            var to   = new MailAddress(member.Email, member.Name);

            var mailMessage = new MailMessage(from, to);

            mailMessage.Body       = email;
            mailMessage.IsBodyHtml = true;
            mailMessage.Subject    = "Card activity notice";

            await smtpClient.SendMailAsync(mailMessage);
        }
        private async Task SendEmail(TrelloMemberInfo member, string email)
        {
            var from = new MailAddress(deployEmailAddress, "Deploy status");
            var to = new MailAddress(member.Email, member.Name);

            var mailMessage = new MailMessage(from, to);
            mailMessage.Body = email;
            mailMessage.IsBodyHtml = true;
            mailMessage.Subject = "Card activity notice";

            await smtpClient.SendMailAsync(mailMessage);
        }
Esempio n. 3
0
 public CardsByMember(TrelloMemberInfo key, IEnumerable<TrelloCardInfo> trelloCardInfos)
 {
     Member = key;
     Cards = trelloCardInfos;
 }
Esempio n. 4
0
 public CardsByMember(TrelloMemberInfo key, IEnumerable <TrelloCardInfo> trelloCardInfos)
 {
     Member = key;
     Cards  = trelloCardInfos;
 }
Esempio n. 5
0
 protected bool Equals(TrelloMemberInfo other)
 {
     return(string.Equals(Name, other.Name) && string.Equals(Email, other.Email));
 }