Posted on: 4/13/2014 3:08:06 PM | Views : 527


here is what i have in an existing web form code...pretty simple....
Protected Sub Page_LoadComplete(sender As Object, e As System.EventArgs) Handles Me.LoadComplete Dim mailMessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage() mailMessage.From = New System.Net.Mail.MailAddress("postmaster@email.com") mailMessage.To.Add(New System.Net.Mail.MailAddress("1234567890@txt.att.net")) mailMessage.Subject = "Members Page Load Complete" mailMessage.Body = "The email work on page load complete" Dim smtpClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient() smtpClient.Send(mailMessage) End Sub I want to add this to several pages, so I think I should just add a class and call it from the pages to make it simpler with less coding.   I need help constructing the first line of this code "Prot ...

Go to the complete details ...