ASP中CDO.Message 怎么用

来源:百度知道 编辑:UC知道 时间:2024/07/07 20:43:00
有谁能告诉我完整的代码吗,先在这里谢谢了!
请问这是用什么语言编的?

try
{
CDO.Message oMsg = new CDO.Message();
oMsg.From = "";//发送方邮箱
oMsg.To = "";//接收方邮箱
oMsg.Subject = "";//主题
oMsg.HTMLBody = "";//内容
CDO.IConfiguration iConfg = oMsg.Configuration;
ADODB.Fields oFields = iConfg.Fields;

oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"].Value=2;
oFields["http://schemas.microsoft.com/cdo/configuration/sendusername"].Value="";//用户名
oFields["http://schemas.microsoft.com/cdo/configuration/sendpassword"].Value="";//密码
oFields["