adding items to mail message body

Discussion in 'ASP.NET 2.0' started by wisemx, Dec 16, 2007.

  1. In the part that contains the text for the body now you can build more text into it.


    Dim BodyString As String = ""
    BodyString &= "Some text "
    BodyString &= "Some more text "
    MailMsg.Body = BodyString + "Coaches Name" + TxtCoachName2.Text
    You can break lines, carriage returns,withcode line strings.


    Post Edited (wisemx) : 12/16/2007 1:52:48 PM GMT
     
  2. hey guys, how do i add multiple items to body of my message? here's my code:


     
  3. Works perfectly! Thank You


    Now, how do I add line breaks in the body?
     
  4. A quick and simple method would be with vbCrLf: (Control Line Feed...Old school VB method.)


     

Share This Page