最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
通过CDO组件对NNTP服务器发送消息
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
class CDOSend{
public void sendMessageBox(){
try {
CDO.Message oMsg = new CDO.Message();
CDO.NNTPPostConnectorClass p=new CDO.NNTPPostConnectorClass();
oMsg.From = "xxx@xxx.xxx"
oMsg.To = "xxx@xxx.xxx"
oMsg.Subject = "newtest";
oMsg.TextBody = "huhong test";
oMsg.Newsgroups="microsoft.public.cn.dotnet.framework";
CDO.IConfiguration iConfg = oMsg.Configuration;
ADODB.Fields oFields = iConfg.Fields;
oFields["cdoNNTPServer"].Value="microsoft.public.cn.dotnet.framework";
oFields["cdoNNTPServerPort"].Value =119;
oFields.Update();
oMsg.BodyPart.Charset="gb2312";
//oMsg.HTMLBodyPart.Charset="gb2312";
oMsg.Post();
oMsg = null;
}
catch (Exception e) {
throw e;
}
}
}
-
上一个: activebar控件
相关文章
- 探探app如何撤回已经发送的消息 07-12
- 今日头条app如何给小编发送私信 06-22
- word提示发送错误报告怎么办 05-11
- 手印直播APP怎么发送弹幕 手印直播APP发送弹幕教程 04-16
- Word将文档内容发送到PPT方法 04-11
- 天籁K歌怎么发送悄悄话 天籁K歌APP发悄悄话方法 03-20