Send email using web form – user defines smtp settings. send-email.aspx To: From: SMTP Server: Subject: Attachment: Body: You email body here Action: Status: [labelEmailSent] send-email.aspx.vb Imports System.Net.Mail Partial Class Send_Email Inherits System.Web.UI.Page Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Try Dim SendFrom As MailAddress = New MailAddress(txtFrom.Text) Dim SendTo […]
Archive for the 'Email' Tag
VB.NET – Send Email
Send Email Page Please complete input form: <asp:Label ID=”Confirm” runat=”server” > <asp:Label ID=”litStatus” runat=”server” style=”color: Gray; padding-left: 20px;”> <asp:FormView ID=”FormView1″ runat=”server” DataKeyNames=”ID” DataSourceID=”AccessDataSource1″ DefaultMode=”Insert”> <InsertItemTemplate> Your Name:<asp:TextBox ID=”NameTextBox” runat=”server” Text=’< %# Bind("Name") %>‘ Class=”inputText” /> <asp:RequiredFieldValidator ID=”RequiredFieldValidator1″ runat=”server” ErrorMessage=”<font color=’red’>*</font>” ControlToValidate=”NameTextBox”></asp:RequiredFieldValidator> Code Number:<asp:TextBox ID=”CodeNumberTextBox” runat=”server” Text=’< %# Bind("CodeNumber") %>‘ Class=”inputText” /> <asp:RequiredFieldValidator ID=”RequiredFieldValidator2″ runat=”server” ErrorMessage=”<font […]