示例#1
0
        public InternetMailAttachment Add(BinaryDataContext data, string attachmentName = "")
        {
            var attachment = new InternetMailAttachment(data, attachmentName);

            attachment.Name = attachmentName;
            _data.Add(attachment);
            return(attachment);
        }
示例#2
0
        public InternetMailAttachment Add(string filePath, string attachmentName = "")
        {
            var attachment = new InternetMailAttachment(filePath);

            attachment.Name = attachmentName;
            _data.Add(attachment);
            return(attachment);
        }
示例#3
0
        public InternetMailAttachment Add(InternetMailMessage data, string attachmentName = "")
        {
            var attachment = new InternetMailAttachment();

            attachment.Data = data;
            attachment.Name = attachmentName;
            _data.Add(attachment);
            return(attachment);
        }