G
Guest
Hello,
I want to send an email when the Insert button is clicked that includes data
entered on the form. I am using asp.net 2.0 and an insert template. I
receive the email OK, but there is no subject or body. Please help.
Here's my code:
Protected Sub InsertButton_Init(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim message As New System.Net.Mail.MailMessage()
Dim client = New System.Net.Mail.SmtpClient()
Dim prb As New String(Request.Form("insertprb"))
message.From = New System.Net.Mail.MailAddress("(e-mail address removed)")
message.To.Add(New System.Net.Mail.MailAddress("(e-mail address removed)"))
message.Subject = prb
message.Body = prb
message.IsBodyHtml = True
client.Send(message)
End Sub
Thank you for your time.
I want to send an email when the Insert button is clicked that includes data
entered on the form. I am using asp.net 2.0 and an insert template. I
receive the email OK, but there is no subject or body. Please help.
Here's my code:
Protected Sub InsertButton_Init(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim message As New System.Net.Mail.MailMessage()
Dim client = New System.Net.Mail.SmtpClient()
Dim prb As New String(Request.Form("insertprb"))
message.From = New System.Net.Mail.MailAddress("(e-mail address removed)")
message.To.Add(New System.Net.Mail.MailAddress("(e-mail address removed)"))
message.Subject = prb
message.Body = prb
message.IsBodyHtml = True
client.Send(message)
End Sub
Thank you for your time.