0 votes

Hi.

I am using Imap to get attachment list.

foreach (MimeStructure file in info.BodyStructure.Attachments)
{
    String filename = file.SafeFileName;
}

by this code i can get the name of file but how can i get the file path because i don't want to download attachments in my local server. so i want to use the path where attached file is being saved in gmail server.

by

1 Answer

0 votes

Attached files are not saved anywhere on the IMAP's server, and even if they were no one would expose such information through IMAP.

Attachments are attached to the email - they are stored inside the email message.

by (297k points)
...