
Originally Posted by
sapator
top of page.
I inserted it on top but i'm still getting blue under-lines.
is this right?
Code:
Imports System.Net.Mail
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub btnClear_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnClear.Click
Server.Transfer("Default.aspx")
End Sub
Protected Sub btnEmail_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnEmail.Click
'!!! UPDATE THIS VALUE TO YOUR EMAIL ADDRESS
Const ToAddress As String = "ramiabbas@daora-d.com"
'(1) Create the MailMessage instance
Dim mm As New MailMessage (Underline Useremail)--->(UsersEmail.Text, ToAddress)
'(2) Assign the MailMessage's properties
mm.Subject = txtSubject.Text
(Underline)---> mm.Message = txtName.Text
(Underline)---> mm.IsMessageHtml = False
'(3) Create the SmtpClient object
Dim SMTP As New SmtpClient
'(4) Send the MailMessage (will use the Web.config settings)
SMTP.Send(mm)
End Sub
End Class
I've pointed out the errors im getting