Gets the object used for logging MailBee activities into a file or memory buffer.
A reference to the object used for logging MailBee activities into a file or memory buffer.
This property is never a null reference (Nothing in Visual Basic) even if logging is not used.
This sample sets file logging on and sets the filename of the log file.
[C#] // To use the code below, import MailBee namespaces at the top of your code. using MailBee; using MailBee.ImapMail; // The actual code (put it into a method of your class). Imap imp = new Imap(); imp.Log.Enabled = true; imp.Log.Filename = @"C:\log.txt"; imp.Connect("mail.domain.com"); imp.Disconnect();
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.ImapMail ' The actual code (put it into a method of your class). Dim imp As New Imap imp.Log.Enabled = True imp.Log.Filename = "C:\log.txt" imp.Connect("mail.domain.com") imp.Disconnect()
Imap Class | MailBee.ImapMail Namespace