This is an example of VB.NET ~
Email.aspx
<% @ Page language = "vb"
Autoeventwireup = "false"
Codebehind = "email.aspx.vb"
Inherits = "asif.sendemail"%>
Name = "generator">
Name = "vs_targetschema">
HEAD>
Font-size = "large" font-bold = "true" forcolor = "blue" Style = "Z-Index: 100; Left: 140px; Position: absolute; TOP: 42PX "> Sending email from ASNET WebPage asp: label> Style = "Z-Index: 101; Left: 236px; Position: absolute; TOP: 104PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 102; Left: 140px; Position: absolute; TOP: 106PX "> From: asp: label> ErrorMessage = "* requiredfield" ControlToValidate = "txtfrom" Style = "Z-Index: 103; Left: 413px; Position: Absolute; TOP: 111PX "> asp: requiredfieldValidator> Style = "Z-Index: 104; Left: 236px; Position: absolute; Top: 137px "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 105; Left: 140px; Position: absolute; TOP: 138PX "> TO: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Font-size = "large" font-bold = "true" forcolor = "blue"
Style = "Z-Index: 100; Left: 140px; Position: absolute;
TOP: 42PX ">
Sending email from ASNET WebPage
asp: label>
Style = "Z-Index: 101; Left: 236px; Position: absolute; TOP: 104PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 102; Left: 140px; Position: absolute; TOP: 106PX "> From: asp: label> ErrorMessage = "* requiredfield" ControlToValidate = "txtfrom" Style = "Z-Index: 103; Left: 413px; Position: Absolute; TOP: 111PX "> asp: requiredfieldValidator> Style = "Z-Index: 104; Left: 236px; Position: absolute; Top: 137px "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 105; Left: 140px; Position: absolute; TOP: 138PX "> TO: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Style = "Z-Index: 101; Left: 236px; Position: absolute;
TOP: 104PX ">
asp: textbox>
Font-name = "arial" font-size = "smaller" Style = "Z-Index: 102; Left: 140px; Position: absolute; TOP: 106PX "> From: asp: label> ErrorMessage = "* requiredfield" ControlToValidate = "txtfrom" Style = "Z-Index: 103; Left: 413px; Position: Absolute; TOP: 111PX "> asp: requiredfieldValidator> Style = "Z-Index: 104; Left: 236px; Position: absolute; Top: 137px "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 105; Left: 140px; Position: absolute; TOP: 138PX "> TO: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Font-name = "arial" font-size = "smaller"
Style = "Z-Index: 102; Left: 140px; Position: absolute;
TOP: 106PX ">
From:
ErrorMessage = "* requiredfield" ControlToValidate = "txtfrom" Style = "Z-Index: 103; Left: 413px; Position: Absolute; TOP: 111PX "> asp: requiredfieldValidator> Style = "Z-Index: 104; Left: 236px; Position: absolute; Top: 137px "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 105; Left: 140px; Position: absolute; TOP: 138PX "> TO: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
ErrorMessage = "* requiredfield" ControlToValidate = "txtfrom"
Style = "Z-Index: 103; Left: 413px; Position: Absolute;
TOP: 111PX ">
asp: requiredfieldValidator>
Style = "Z-Index: 104; Left: 236px; Position: absolute; Top: 137px "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 105; Left: 140px; Position: absolute; TOP: 138PX "> TO: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Style = "Z-Index: 104; Left: 236px; Position: absolute;
Top: 137px ">
Font-name = "arial" font-size = "smaller" Style = "Z-Index: 105; Left: 140px; Position: absolute; TOP: 138PX "> TO: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Style = "Z-Index: 105; Left: 140px; Position: absolute;
TOP: 138PX ">
TO:
Runat = "server" font-size = "x-small" ErrorMessage = "* requiredfield" ControlToValidate = "txtto" Style = "Z-Index: 106; Left: 417px; Position: absolute; Top: 145px "> asp: requiredfieldValidator> Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Runat = "server" font-size = "x-small"
ErrorMessage = "* requiredfield" ControlToValidate = "txtto"
Style = "Z-Index: 106; Left: 417px; Position: absolute;
Top: 145px ">
Style = "Z-Index: 107; Left: 236px; Position: absolute; TOP: 171PX ">> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Style = "Z-Index: 107; Left: 236px; Position: absolute;
TOP: 171PX ">>
Font-name = "arial" font-size = "smaller" Style = "Z-Index: 108; Left: 140px; Position: absolute; TOP: 173PX "> SUBJECT: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Style = "Z-Index: 108; Left: 140px; Position: absolute;
TOP: 173PX ">
SUBJECT:
Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px"> asp: requiredfieldValidator> TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
ErrorMessage = "* Requiredfield"
ControlTovAlidate = "TXTSUBJECT" style = "z-index: 109; Left: 417px; position: absolute; top: 177px">
TextMode = "multiline" width = "349px" Height = "188px" Style = "Z-Index: 110; Left: 236px; Position: absolute; TOP: 214PX "> asp: textbox> Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
TextMode = "multiline" width = "349px" Height = "188px"
Style = "Z-Index: 110; Left: 236px; Position: absolute;
TOP: 214PX ">
Font-name = "arial" font-size = "smaller" Style = "Z-Index: 111; Left: 140px; Position: absolute; TOP: 218PX "> Message: asp: label> Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Style = "Z-Index: 111; Left: 140px; Position: absolute;
TOP: 218PX ">
Message:
Runat = "server" font-size = "x-small" ErrorMessage = "* Requiredfield" ControlToValidate = "txtMessage" style = "z-index: 112; Left: 591px; position: absolute; top: 222px "> asp: requiredfieldValidator> TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
ControlToValidate = "txtMessage" style = "z-index: 112;
Left: 591px; position: absolute; top: 222px ">
TEXT = "send email" width = "165px" font-bold = "true" Style = "Z-Index: 113; Left: 236px; Position: absolute; TOP: 418PX "> asp: button> Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
TEXT = "send email" width = "165px" font-bold = "true"
Style = "Z-Index: 113; Left: 236px; Position: absolute;
TOP: 418PX ">
asp: button>
Font-size = "small" width = "373px" visible = "false"> asp: label> form> body> Html> EMAIL.ASPX.vb Imports System.Web.mail Public Class Sendemail Private subdsendemail_click (Byval Sender as system.object, _ Byval e as system.eventargs) Handles cmdsendemail.click Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring Objmail.to = me.txtto.Text.toString Objmail.subject = me.txtsubject.text.toString Objmail.body = me.txtMessage.Text.toTString Objmail.bodyFormat = mailformat.html SMTPMAIL.SEND (OBJMAIL) Me.lblMessage.Text = "Email Has Been Sent" End Sub END CLASS
Font-size = "small" width = "373px" visible = "false">
form>
body>
Html>
EMAIL.ASPX.vb
Imports System.Web.mail
Public Class Sendemail
Private subdsendemail_click (Byval Sender as system.object, _
Byval e as system.eventargs) Handles cmdsendemail.click
Dim objmail as new mailmessage () objmail.from = me.txtfrom.text.tostring
Objmail.to = me.txtto.Text.toString
Objmail.subject = me.txtsubject.text.toString
Objmail.body = me.txtMessage.Text.toTString
Objmail.bodyFormat = mailformat.html
SMTPMAIL.SEND (OBJMAIL)
Me.lblMessage.Text = "Email Has Been Sent"
End Sub
END CLASS