hi ,
I m trying to download email from my outlook using Exchange Service , but I m facing an issues here , and the issue is it is showing contentType as null , code is shown below .
from the below code I m able to get  fileAttachment.Name and fileAttachment.Size except fileAttachment.ContentType is coming as null, is there any way to get the content type of attachment ?

public static void SaveAttachmentsToDB(ExchangeService service, EmailMessage i) { EmailMessage message = EmailMessage.Bind(service, i.Id, new PropertySet(BasePropertySet.IdOnly, ItemSchema.Attachments)); foreach (Attachment attachment in message.Attachments) { if (attachment is FileAttachment) { FileAttachment fileAttachment = attachment as FileAttachment; string AttachmentType = fileAttachment ...

Go to the complete details ...