简体   繁体   中英

What options are there for replacing CDONTS in an ASP application on Windows 2003 server

I have a classic ASP application using CDONTS.

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.

If you are going to continue to use ASP then you can simply use CDOSYS instead.

Here's a sample on w3schools:

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM