D
Dhananjay
Hi all ,
I have notify.aspx page. On this page i have 10 textboxes with some
values coming from database.and i have also placed two buttons namely
send and save . when i click on send button, the mail is going to
target emailid(To).
but all the contents means textboxes values are not going with this
mail.
Only the parameters i have defiend in send method that parameters only
appears.
But i want all the 10 textboxes values to be sent to the email id that
means the web page(notify.aspx) control contents(textbox values).
this is my code which i have wrriten, please help me to solve the
problem or correct the code please.
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As
EventArgs)
Dim Mailmsg As New System.Net.Mail.MailMessage()
Dim MailServerName As String = "12.96.164.83"
Dim mSmtpClient As New Net.Mail.SmtpClient
mSmtpClient.Host = MailServerName
mSmtpClient.Port = 25
Mailmsg.IsBodyHtml = True
Try
mSmtpClient.Send("(e-mail address removed)",
"(e-mail address removed)", "Hi test mail", "Hello buddy")
Catch objException As Exception
End Try
End Sub
Thanks in advance
Dhananjay
I have notify.aspx page. On this page i have 10 textboxes with some
values coming from database.and i have also placed two buttons namely
send and save . when i click on send button, the mail is going to
target emailid(To).
but all the contents means textboxes values are not going with this
mail.
Only the parameters i have defiend in send method that parameters only
appears.
But i want all the 10 textboxes values to be sent to the email id that
means the web page(notify.aspx) control contents(textbox values).
this is my code which i have wrriten, please help me to solve the
problem or correct the code please.
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As
EventArgs)
Dim Mailmsg As New System.Net.Mail.MailMessage()
Dim MailServerName As String = "12.96.164.83"
Dim mSmtpClient As New Net.Mail.SmtpClient
mSmtpClient.Host = MailServerName
mSmtpClient.Port = 25
Mailmsg.IsBodyHtml = True
Try
mSmtpClient.Send("(e-mail address removed)",
"(e-mail address removed)", "Hi test mail", "Hello buddy")
Catch objException As Exception
End Try
End Sub
Thanks in advance
Dhananjay