Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
165 views
in Technique[技术] by (71.8m points)

c# - How to read outgoing/sent emails from mailbox?

Is there any method in .NET to read the outgoing/sent messages from a mailbox? I've accessed the received messages through Pop3.NET library, but I don't get how to access the sent messages.

Thanks

question from:https://stackoverflow.com/questions/65934582/how-to-read-outgoing-sent-emails-from-mailbox

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If the mail server supports the IMAP protocol, you can use a library such as MailKit to access the "Sent" folder, but whether the message(s) you expect to be there are there or not will all depend on whether the client that sent the message(s) also appended them (via IMAP or otherwise) to the "Sent" foolder.

FOr example, if you are sending mail using System.Net.Mail.SmtpClient, then any message(s) you send with that API will NOT end up in the account's "Sent" folder unless you explicitly append the message to that folder using a library such as MailKit to do it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...