I have an aspx form that a user submits information, which is recorded to a database.
I want to send an email confirming their info. I am using vb.net a system.web.mail. Sending a static email works fine, but I want to include session variables of what they submitted and format the email such as put the data into a table.
I am having trouble formatting the text to send the HTML email.
Here is what I am trying...
I start with
Session("EmailMsg") = "<b>Thank You for your Order: </b> " & Session("MyOrder") & "<br/>"
Then for each row of inforation the user submits I am doing this...
Session("EmailMsg") = Session("emailmsg") & lblItem1.Text & " " & lblDescp1.Text & " " & txtQty1.Text & "<br/>"
I have tried things like with no success
Session("EmailMsg") = Session("emailmsg") & "<table><td> lblItem2.Text</td> & "" & <td>lblDescp2.Text</td> & "" & <td>txtQty2.Text</td> &</table><br/> "
Can someone help me with formatting this email.