Hi Sathyapriya,
Thank you for your inquiry.
We have tested this issue at our end and could not reproduce the same as you have reported. Here are the details of the tests.
-
An Office365 account is used to send out two emails to another Office 365 account
-
First email contains an Inline image for which you have mentioned the problem. Please note that inline images are represented by the LinkedResources Colleciton and not by Attachments Collection.
-
Second email contains an image as a regular attachment
These emails are retrieved via the following code from the second test account and it is correctly showing the number of attachments and linked resources for each of these emails. The code sample below contains valid credentials for the test account. Please try it at your end and share your feedback with us.
Code:
Pop3Client client = new Pop3Client("outlook.office365.com", 995, "usertwo@ASE1985.onmicrosoft.com", "Aspose1234");
client.SecurityOptions = SecurityOptions.Auto;
Console.WriteLine(client.ListMessages().Count);
MailMessage eml = client.FetchMessage(1);
Console.WriteLine(eml.Attachments.Count);
Console.WriteLine(eml.LinkedResources.Count);
eml = client.FetchMessage(2);
Console.WriteLine(eml.Attachments.Count);
Console.WriteLine(eml.LinkedResources.Count);