[英]What options are there for replacing CDONTS in an ASP application on Windows 2003 server
I have a classic ASP application using CDONTS. 我有一个使用CDONTS的经典ASP应用程序。
What options are available to allow the ASP application to continue sending emails with something that is standard on Windows 2003 server with the .Net framework 2.0 installed. 可以使用哪些选项来允许ASP应用程序继续发送电子邮件,该电子邮件带有安装了.Net Framework 2.0的Windows 2003服务器上的标准配置。
If you are going to continue to use ASP then you can simply use CDOSYS instead. 如果要继续使用ASP,则可以直接使用CDOSYS。
Here's a sample on w3schools: 这是关于w3schools的示例:
http://www.w3schools.com/asp/asp_send_email.asp http://www.w3schools.com/asp/asp_send_email.asp
If you want to use the .net framework 2.0 then look into the System.Net.Mail namespace. 如果要使用.net framework 2.0,请查看System.Net.Mail命名空间。
If you want to have ASP call the .net framework you can create a console based executable that takes arguments for sender email, receiver email, subject, body and then the console exe will send off the email for your asp app. 如果要让ASP调用.net框架,则可以创建一个基于控制台的可执行文件,该文件接受发件人电子邮件,收件人电子邮件,主题,正文的参数,然后控制台exe将为您的asp应用程序发送电子邮件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.