我开发了一个vb.net表单,其中包含我的Outlook收件箱的所有邮件" Next"和"上一页" button.I我能够获取所有细节,例如" SenderName"," SenderEmail"," Body"我面临的问题是,邮件正文不是HTML格式。我需要HTML格式的正文在vb.net表单上显示。
这是我目前的代码。
myItems.Item(currentindexparam).BodyFormat = Outlook.OlBodyFormat.olFormatHTML
lblsub.Text = myItems.Item(currentindexparam).Subject
lblform.Text = myItems.Item(currentindexparam).SenderEmailAddress
txt_body.Text = myItems.Item(currentindexparam).Body
lbldate.Text = myItems.Item(currentindexparam).ReceivedTime
_currentindex = currentindexparam
Dim Atmt As Outlook.Attachment
For Each Atmt In myItems.Item(currentindexparam).Attachments
Dim filename As String = "C:\Email Attachments\" + Atmt.FileName
Atmt.SaveAsFile(filename)
Next Atmt
如果您对此有任何想法,请告诉我。
由于