S22.Imap icon indicating copy to clipboard operation
S22.Imap copied to clipboard

Store mail message on an IMAP server

Open iyerrama25 opened this issue 13 years ago • 1 comments

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?

iyerrama25 avatar Feb 24 '13 19:02 iyerrama25

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

smiley22 avatar Feb 25 '13 16:02 smiley22