Method for sending mail using SMTPMAIL in ASP.NET

xiaoxiao2021-03-06  41

In ASP, you can send simple messages by calling the CDONTS component, in ASP.NET, naturally. Different from .NET Framework, package this component into the System.Web.mail namespace.

A typical mail sender is as follows: <% @ Import namespace = "system.Web.mail"%>