Development ASP.Net Tutorial

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Net.Mail" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    void Page_Load()
    {
        SmtpClient client = new SmtpClient();
        client.Host = "localhost";
        client.Port = 25;
        client.Send("a@a.com", "s@s.com","Subject", "Email body");
    }



    Send Mail


    
    

    Email sent!