LogEntryContextInfo Property |
Namespace: MailBee
This property is useful when using the Smtp component. Unlike Pop3 and Imap components, Smtp component can operate in multiple contexts
When Pop3 component is used, the context is always POP3.
However, when Smtp component is used, the context may be somewhat like SEND-00.SMTP-04, which indicates the component is sending a mail message using multiple threads, and the current log entry corresponds to thread #4 (starting from zero). Another example is SEND-00.SMTP-00.POP3 which means the component currently operates in send mail mode, the connection to SMTP server on thread #0 is in progress, and POP-before-SMTP authentication is currently performed as a part of this connection procedure.
ContextInfo value is especially useful when Smtp component operates in multi-thread mode (MaxThreadCount is not 1). In this case, many log entries are simultaneously added into the log by multiple threads. In this case, ContextInfo allows the person who's viewing the log to group the log entries by their ContextInfo values.