Home » 2011 » October » 10

Archive for October 10, 2011

VB.NET – Send Email

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 […]