Discuss this help topic in SecureBlackbox Forum

SMTP: Log the session

Use OnSent and OnReceived events to log SMTP sessions.

Examples:

C#:


void smtp_OnReceived(object Sender, byte[] TextLine)
{
    Console.Write("-> {0}", Encoding.ASCII.GetString(TextLine));
}

void smtp_OnSent(object Sender, byte[] TextLine)
{
    Console.Write("\n<- {0}", Encoding.ASCII.GetString(TextLine));
}

How To articles about SMTP client

Discuss this help topic in SecureBlackbox Forum