C#邮件接收发送解析

时间:2016-12-10 14:05:45
【文件属性】:

文件名称:C#邮件接收发送解析

文件大小:1.21MB

文件格式:RAR

更新时间:2016-12-10 14:05:45

接收发送解析

能满足初学者的需要,代码理解不难.for (int i = 1; i <= objPOP3.TotalMailCount; i++) { string[] arrRets = PopMail(tcpclient, i); Email.POP3.EmailMessage objEmail = objPOP3.GetMessage(i, false); richEmailsInfo.AppendText("======================邮件内容" + objPOP3.InboxSize.ToString() + "======================\n"); richEmailsInfo.AppendText("当前第:" + i + "封信"); richEmailsInfo.AppendText("发件人: " + objEmail.From + "\n"); richEmailsInfo.AppendText("时间: " + GetDateTime(objEmail.Date) + "\n"); richEmailsInfo.AppendText("收件人: " + arrRets[3] + "\n"); richEmailsInfo.AppendText("抄送人: " + arrRets[4] + "\n"); richEmailsInfo.AppendText("邮件大小: " + objEmail.Size + "\n"); richEmailsInfo.AppendText("附件内容: " + objEmail.ContentType + "\n"); richEmailsInfo.AppendText("主题: " + objEmail.Subject + "\n"); string content = rd.ParseEmailText(arrRets[6]); richEmailsInfo.AppendText("邮件内容:\n" + content + "\n"); for (int a = 0; a < objEmail.Attachments.Count; a++) processAttachment((Email.POP3.Attachment)objEmail.Attachments[a], 1); richEmailsInfo.AppendText("\n====================邮件接收完成====================\n\n"); }


【文件预览】:
C#邮件发送接收软件源代码+邮件内容解码
----EmailSendAndReceive()
--------EmailSendAndReceive.sln(947B)
--------EmailSendAndReceive()
--------Backup()
--------EmailSendAndReceive.suo(32KB)
--------_UpgradeReport_Files()
--------UpgradeLog.XML(5KB)

网友评论