How to send email in ASP.NET- C# example
This is example how to send email from asp,net web application. Refer this post if you want to send email in java code . This example will use google smtp email server. The aspx Page <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <asp:Label ID="LErrorMessage" runat="server" ></asp:Label> <asp:Button ID="Button1" runat="server" Text="Send Email" OnClick="Button1_Click" /> </asp:Content> The Code Behind protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string emailContent = "This mail is created and send through the c# code," + "\n\n if you are developers, visit http://www.developersnote.com!", subject = "Developersnote update - Mail Send Using AS