5
5070707
Hi all!
I have a small form build with visual studio 2005 (Visual Basic)
in that form i have some text boxes and some combos.
these are being field by the users followed by an mail submit button i
created using a snipet.
the button code:
Private Sub butmail_Click_1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butmail.Click
Dim body As String = Me.DateTimePicker1.Text()
Dim message As New MailMessage("(e-mail address removed)", "(e-mail address removed)",
"Computer Notice", body)
Dim emailClient As New SmtpClient("aaa.aaa.aaa")
emailClient.Send(message)
End Sub
End Class
Now, the email does arrive containing the data that the user typed in
the fields,
but the data comes as a stright string with no spaces in the msg body.
im looking to understand how can i design the way the msg arrived at
the email box.
lets say for example..
name: the data
owner: the data
last upgrade: data
etc...
bare in mind that it took me ages to perform this small form i have
no idea in programing what so ever, just following the logic...
so code samples would be greatly appriciated!
thanks for everything!
50.
I have a small form build with visual studio 2005 (Visual Basic)
in that form i have some text boxes and some combos.
these are being field by the users followed by an mail submit button i
created using a snipet.
the button code:
Private Sub butmail_Click_1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butmail.Click
Dim body As String = Me.DateTimePicker1.Text()
Dim message As New MailMessage("(e-mail address removed)", "(e-mail address removed)",
"Computer Notice", body)
Dim emailClient As New SmtpClient("aaa.aaa.aaa")
emailClient.Send(message)
End Sub
End Class
Now, the email does arrive containing the data that the user typed in
the fields,
but the data comes as a stright string with no spaces in the msg body.
im looking to understand how can i design the way the msg arrived at
the email box.
lets say for example..
name: the data
owner: the data
last upgrade: data
etc...
bare in mind that it took me ages to perform this small form i have
no idea in programing what so ever, just following the logic...
so code samples would be greatly appriciated!
thanks for everything!
50.