简体   繁体   English

在Windows 2003服务器上的ASP应用程序中有哪些选项可以替换CDONTS

[英]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.

相关问题 Mail()不会在Windows Server2003中发送 - Mail() won't send in windows server2003 从Windows服务器上的ASP.NET C#脚本发送的每小时电子邮件数量是多少? - What's a good number of emails per hour sent from an ASP.NET C# script on a Windows server? 默认情况下PHP mail()使用什么SMTP服务器,有更好的选择吗? - What SMTP server does PHP mail() use by default, and are there better options? Outlook 2003使用什么版本的IE? - What version of IE does Outlook 2003 use? SMTP Windows Server 2008 Asp.net提取目录 - SMTP windows server 2008 Asp.net Pickup Directory 在asp.net应用程序中存储SMTP凭据的最佳实践是什么? - What are best practices for storing SMTP credentials in an asp.net application? 如何在Windows应用程序中使用SMTP服务器向手机发送短信? - How to send SMS to mobile using SMTP server in windows application? 在Windows 2000 Server IIS(带有ASP Classic)中,文件大小超过100k的附件为0字节 - Attachments are 0 bytes for file sizes over 100k in Windows 2000 server IIS with ASP Classic 有哪些ASP.NET组件可用于在Web应用程序中实现“安全消息传递”? - What ASP.NET components are there for implementing “secure messaging” within a web application? 在asp.net中的服务器上托管后,从Web应用程序发送邮件时发生错误 - Error occurred while sending mail from web application after hosting on server in asp.net
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM