注册 登录
编程论坛 ASP.NET技术论坛

CDO.message对象

qixingjie 发布于 2007-04-29 09:49, 703 次点击
我在编程时遇到了这样的问题:程序能运行,但是点击“发送”按钮时,出现“未能访问CDO.message对象”,该如何解决?
谢谢!
3 回复
#2
卡洛2007-04-29 10:17
MM,可以把你代码部分发出来嘛`
#3
qixingjie2007-04-29 10:46

谢谢!
private void btSend_Click(object sender, System.EventArgs e)
{
string zhusong = this.tbZs.Text.Trim();//文件的主送人
string baosong = this.tbBs.Text.Trim();//文件的报送人
string Subject = this.tbSubject.Text.Trim();//文件的主题
string Body = this.tbBody.Text;//文件的内容
string Priority = this.ddlPriority.SelectedValue;//文件的优先级
//文件的上传
string[] Attachments = new string[this.ddlUpFile.Items.Count];
for (int i=0;i<this.ddlUpFile.Items.Count;i++)
{
Attachments[i] = this.ddlUpFile.Items[i].Value;
}

if (myemail.SendEmail(zhusong,bongsong,Subject,Body,Priority, Attachments))
{
Page.RegisterClientScriptBlock("ok","<script language=c#>alert('发送成功')</script>");
}
else
{
Page.RegisterClientScriptBlock("ok","<script language=c#>alert('发送失败')</script>");
}
}

#4
卡洛2007-04-29 11:30
这也可不出什么来吖``

你CDO那个对象是什么吖~?
1