请,以下脚本可以与ASP.NET一起使用吗? [英] Please, can the following script work with ASP.NET?

查看:115
本文介绍了请,以下脚本可以与ASP.NET一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.Send
set myMail=nothing

推荐答案

在代码中发送电子邮件的方法.它看起来很像这样:

http://www.w3schools.com/asp/asp_send_email.asp [ http://www.4guysfromrolla.com/articles/072606-1.aspx [ ^ ]
在ASP.Net 2.0中发送电子邮件-反馈表单 [ ^ ]
It looks like you are trying to use the old ASP method of sending email in your code. It looks very similar to something like this:

http://www.w3schools.com/asp/asp_send_email.asp[^]

Instead, since you are using the .NET framework, you can take advantage of the updated libraries. Here are a couple examples of doing so:

http://www.4guysfromrolla.com/articles/072606-1.aspx[^]
Send Email in ASP.Net 2.0 - Feed back Form[^]


这篇关于请,以下脚本可以与ASP.NET一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆