Send Outlook Email with Table in VB.net
<p>I'm using the following code to generate and open an Outlook E-Mail. However I need to be able to insert a table with some variables and my current method only allows for basic text, could anyone suggest a way in which I could integrate a table? </p>

<pre><code>  Try
       lblStatus.Text = "Opening OutLook Mail, Please Wait..."
        My.Application.DoEvents
        Dim Outl As Object
        Outl = CreateObject("Outlook.Application")
        If Outl IsNot Nothing Then
            Dim omsg As Object
            omsg = Outl.CreateItem(0)
            omsg.body = "Table should go here"
            omsg.To = "*address goes here"
            omsg.subject = SubjectLine
            'set message properties here...'
            omsg.Display(false) 'will display message to user
            lblStatus.Text = "Outlook Mail Template Opened."
            My.Application.DoEvents
        End If
    Catch ex As Exception
        lblStatus.Text = "Opening OutLook Mail | Error Encountered"
           My.Application.DoEvents
        'log error
    End Try
</code></pre>

<p>Here's an example of what the table needs to be like:</p>

<p><a href="https://i.stack.imgur.com/MIsBk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MIsBk.png" alt="enter image description here"></a></p>

<p>Obviously there's formatting code used by Outlook, but I don't know how to send that from visual basic into the email. </p>