Ejemplo n.º 1
0
        public InternetMailAttachment Add(BinaryDataContext data, string attachmentName = "")
        {
            var attachment = new InternetMailAttachment(data, attachmentName);

            attachment.Name = attachmentName;
            _data.Add(attachment);
            return(attachment);
        }
Ejemplo n.º 2
0
        public InternetMailAttachment Add(string filePath, string attachmentName = "")
        {
            var attachment = new InternetMailAttachment(filePath);

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

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