Exemple #1
0
 public void AddAttachment(string fileName, byte[] data, string mimeType, string contentId)
 {
     var emailAttachment = new EmailAttachment(fileName, data, mimeType, true);
     emailAttachment.ContentID = contentId;
     this.Attachments.Add(emailAttachment);
 }
Exemple #2
0
 public string AddAttachment(string fileName, byte[] data, string mimeType, bool isInline = false)
 {
     var emailAttachment = new EmailAttachment(fileName, data, mimeType, isInline);
     this.Attachments.Add(emailAttachment);
     return emailAttachment.ContentID;
 }