We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to Store EML Messages to IMAP Server?

How to convert single EML to IMAP and Multiple EML to IMAP

Welcome to our community! Thank you for posting the query. Could you clarify your requirements and goals in more detail, please? Also, please specify the programming language you are using with Aspose.Email.

I want to store eml files to imap server also create custom folders and store into that.im using c# .net and eml files(single or multiple).so please provide solution

Could you please clarify if your server is Microsoft Exchange Server?

i want solution for all kind of mail server gmail yahoo thunderbird n more

Thank you for the additional information.

You can use the ImapClient class instance for creating folders as shown below:


An EML file can be appended to the folder like this:

imapClient.AppendMessage("FolderName", "message.eml");

To append several messages, please use the next way:

var mailMessages = new List<MailMessage>();
// ...
// after filling mailMessages collection:
imapClient.AppendMessages("FolderName", mailMessages);

More examples: Working with Folders on IMAP Server, Working with Messages from IMAP Server
API Reference: ImapClient Class