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); }
public CardsByMember(TrelloMemberInfo key, IEnumerable<TrelloCardInfo> trelloCardInfos) { Member = key; Cards = trelloCardInfos; }
public CardsByMember(TrelloMemberInfo key, IEnumerable <TrelloCardInfo> trelloCardInfos) { Member = key; Cards = trelloCardInfos; }
protected bool Equals(TrelloMemberInfo other) { return(string.Equals(Name, other.Name) && string.Equals(Email, other.Email)); }