Display-text-html-part-of-the-message - WeOnlyDo Software example code



All

wodCrypt (12)
wodSSH (10)
wodSFTP (23)
wodSSHServer (1)
wodSSHTunnel (11)
wodSSHpackage
wodSFTPdll

wodSSH.NET (10)
wodSFTP.NET (24)
wodFtpDLX.NET (22)
wodWebServer.NET (10)

wodAppUpdate (13)
wodHttpDLX (8)
wodFtpDLX (22)
wodTelnetDLX
wodFTPServer (3)
wodWebServer (10)
wodVPN
wodXMPP (13)
All ** [Visual Basic] ** [C#] ** [VB.NET] **

Display text/html part of the message
VB code
Dim wodMailBox1 As wodMailboxCom
Set wodMailBox1 = New wodMailboxCom

'First we need to load some message or mailbox in wodMailBox.
wodMailBox1.FileName = "c:\new_message.eml"
wodMailBox1.Lock

'Using HtmlText we can display only text/html part of the message.
Debug.Print wodMailBox1.Messages(0).HtmlText
VB.NET code
Dim wodMailBox1 As WODMAILBOXCOMLib.wodMailboxCom
wodMailBox1 = New WODMAILBOXCOMLib.wodMailboxCom

'First we need to load some message or mailbox in wodMailBox.
wodMailBox1.FileName = "c:\new_message.eml"
wodMailBox1.Lock()

'Using HtmlText we can display only text/html part of the message.
Console.WriteLine(wodMailBox1.Messages(0).HtmlText)
C# code
WODMAILBOXCOMLib.wodMailboxCom wodMailBox1;
wodMailBox1 = new WODMAILBOXCOMLib.wodMailboxCom();

//First we need to load some message or mailbox in wodMailBox.
wodMailBox1.Filename = "c:\\new_message.eml";
wodMailBox1.Lock();

//Using HtmlText we can display only text/html part of the message.
Console.WriteLine(wodMailBox1.Messages[0].HtmlText);