C#里面怎么写接收邮件的啊?求原件,不要代码,谢谢!
1个回答
展开全部
public void SendMail(string strToMailAddress, string strSubject, string
strBody, string strSmtpServer, string strIsValid, string strUserName,
string strPassword, string strDomain)
{
try
{
MailAddress mailFrom = new MailAddress(strFromMailAddress);
MailAddress mailTo = new MailAddress(strToMailAddress);
MailMessage objMail = new MailMessage(mailFrom, mailTo);
objMail.IsBodyHtml = true;
objMail.Priority = MailPriority.High;
objMail.Subject = strSubject;
objMail.BodyEncoding = Encoding.UTF8;
objMail.Body = strBody
+ "<p>================================================================="
+" 放文字信息"
+ "=================================================================</p>";
你可以参考一下,源文件我找不到了,手写的
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询