public InternetMailAttachment Add(BinaryDataContext data, string attachmentName = "") { var attachment = new InternetMailAttachment(data, attachmentName); attachment.Name = attachmentName; _data.Add(attachment); return(attachment); }
public InternetMailAttachment Add(string filePath, string attachmentName = "") { var attachment = new InternetMailAttachment(filePath); attachment.Name = attachmentName; _data.Add(attachment); return(attachment); }
public InternetMailAttachment Add(InternetMailMessage data, string attachmentName = "") { var attachment = new InternetMailAttachment(); attachment.Data = data; attachment.Name = attachmentName; _data.Add(attachment); return(attachment); }