2

I'd like to know if my outbox mail has been sent successfully..

var client = new ImapClient(); .... var folders = client.GetFolders(client.PersonalNamespaces[0]); var folder = client.GetFolder("已发送");//get sent mail floder in Chinese var folderAccess = folder.Open(FolderAccess.ReadOnly); string path = @"C:\temp\"; for (int i = folder.Count - 1; i >= 0; i--) { var message = folder.GetMessage(i); } 

1 Answer 1

1

You can't send messages via IMAP, you can only send them via SMTP.

Sending messages via SMTP do not put them into any IMAP folder. You have to put them there yourself.

Sign up to request clarification or add additional context in comments.

4 Comments

we can get mails that had recently been sent via SMTP.we can't get all of the mails that had sent via SMTP.I want to get the information about the message has been sent successfully..I would like to know if the other party received the message
That's not a feature that IMAP supports.
What you want is SMTP delivery status notifications: mimekit.net/docs/html/…
Not all SMTP servers support this feature, however, so there is no guarantee that you will actually receive them. Then, once you receive a status notification which will come as an email with a Content-Type of multipart/report with a child part of message/delivery-status: mimekit.net/docs/html/T_MimeKit_MessageDeliveryStatus.htm

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.