public static string GetStringEmailList(WorkflowMailRecipient[] emailList) { List<string> targetString = new List<string>(); foreach (WorkflowMailRecipient emailItem in emailList) { targetString.Add(emailItem.Email); } string target = string.Join(", ", targetString.ToArray()); return target; }
public ReportMail(WorkflowMailRecipient Recipient, string ReportName, string ReportFile, string MailBody, MailPriority Priority) { this._RecipientEmail = Recipient; this._ReportName = ReportName; if (! string.IsNullOrEmpty(ReportFile)) { this._AttachedReport = new Attachment(ReportFile); } this._MailBody = MailBody; this._Priority = Priority; }