Can someone tell me how to manipulate my body string so that when the user semds the email, the info that was in the textboxes are on different lines.
ex.
trying to get this:
Sam doe
1234 lemon st
New Orleans, LA
instead of like this:
Sam doe 1234 lemon st New Orleans, LA
Thanks in advance
ex.
trying to get this:
Sam doe
1234 lemon st
New Orleans, LA
instead of like this:
Sam doe 1234 lemon st New Orleans, LA
Code:
Inherits System.Web.UI.Page
Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick
Dim body As String
body = txtComments.Text & _
txtStreet.Text & _
txtCity.Text
SendMail(txtEmail.Text, body)
End Sub
Private Sub SendMail(ByVal from As String, ByVal body As String)
Dim mailServerName As String =
Dim message As MailMessage = New MailMessage(from, "a@ra.com", "feedback", body)
Dim mailClient As SmtpClient = New SmtpClient
mailClient.Host = mailServerName
mailClient.Send(message)
message.Dispose()
End Sub
Comment