c#中怎么实现用代理发邮件?
想请问下,C#中.怎样来实现用代理发邮件?谢谢各位大侠了. --------------------编程问答-------------------- mark --------------------编程问答-------------------- 学习中..... --------------------编程问答-------------------- mark --------------------编程问答-------------------- 没人知道呀? --------------------编程问答-------------------- 学习 --------------------编程问答-------------------- 继续顶 --------------------编程问答-------------------- 代理发邮件具体是指什么.通过代理服务发邮件???--------------------编程问答-------------------- 用jmail;dll自己下也可以,要的话也可以发给你的:
/// <summary>
/// 邮件发布
/// </summary>
/// <param name="MailReceiver">收件邮箱</param>
/// <param name="CompName">企业名称</param>
/// <param name="strTxt">内容</param>
/// <param name="strTitle">主题</param>
/// <returns>是否成功</returns>
public static bool SendMail(string CompName, string strTxt, string strTitle)
{
bool blnResult = false;
MessageClass msgCls = new MessageClass(); //事例化一个邮件对象
msgCls.Charset = "GB2312";
msgCls.Encoding = "BASE64";
msgCls.ContentType = "text/html";
msgCls.ISOEncodeHeaders = false;
msgCls.Priority = Convert.ToByte(1);
msgCls.From = "bai51@bai51.com";
msgCls.FromName = CompName;
//服务器名
msgCls.MailServerUserName = "bai51";
//服务器密码
msgCls.MailServerPassWord = "openinfoistheone51bai";
//添加收件人
msgCls.AddRecipient("openinfo.yidi@gmail.com", "", "");
//设置邮件标题
msgCls.Subject = strTitle;
//邮件内容
msgCls.HTMLBody = strTxt;
blnResult = msgCls.Send("bai51.com", false);
return blnResult;
} --------------------编程问答-------------------- QQ:307661705 --------------------编程问答-------------------- 这位大哥,请把那个链接库发我一下,我的邮箱:lihui235@yeah.net,在此感谢啦!!!
补充:.NET技术 , C#