检查是否有新电子邮件c# [英] Check for any new Emails c#

查看:67
本文介绍了检查是否有新电子邮件c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何仅使用c#阅读新的/未读的电子邮件.我在msdn论坛中不太了解NewEmail事件处理程序.如果收到新电子邮件,我必须制作(如果可能)做某些事情的应用.
请提供帮助!

How can I read new/unread email using only c#. I didn''t quite get the NewEmail event handler in msdn forum. I have to make (if possible) an app that does certain thing if new email is received.
Some Help please!!!

推荐答案

这些提示可能会有所帮助
These tips might help
using System.Net;
using System.Net.Mail;
SmtpClient SmtpServer = new SmtpClient(SmtpHost, SmtpPort);
//SmtpHost is the host address e.g. smtp.gmail.com
SmtpServer.Credentials = new System.Net.NetworkCredential(EmailId, EmailPassword);
SmtpServer.EnableSsl = true;
SmtpServer.Send(MessageAsString);
//This can be used to send mail


此链接可能会帮助
http://bendytree.com/tips/Sending-Receiving-Email-in-CSharp [ ^ ]


This Link Might Help
http://bendytree.com/tips/Sending-Receiving-Email-in-CSharp[^]


这篇关于检查是否有新电子邮件c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆