Store mail message on an IMAP server
Hi there, first of all I would sincerely thank smiley22 for authoring with such good documentation regarding Imap. I am a newbie in this field, but found his work simply amazing and understandable, thanks mate!
I was working with the codes and found something which I find hard to decipher for example:
Section taken from - Store mail message on an IMAP server
// Add the attachment Attachment attachment = new Attachment("some_image.png", "image/png"); attachment.Name = "my_attached_image.png"; message.Attachments.Add(attachment);
could you please explain what the above statements does?
Hello,
this just adds an attachment (png image) to the mail message before storing it on the IMAP server. You can learn more about the MailMessage and Attachment classes on Microsoft's MSDN: http://msdn.microsoft.com/en-us/library/system.net.mail.attachment.aspx