Smtp.NET 3 Documentation

SmtpServer.Version Method 

Specifies the current version of the SmtpDotNet assembly.

[Visual Basic]
Public Shared Function Version() As String
[C#]
public static string Version();

Remarks

none

Example

[C#]
            public void Send()
            {
                 SmtpServer oSmtpDotNet = new SmtpServer("c:\\temp\\log.txt");
             
                 // Get the Version
                 Console.WriteLine(oSmtpDotNet.Version());
            }
            
[VB]
            Public Function Send() As Integer
                 Dim oSmtpDotNet As New SmtpServer("c:\temp\log.txt")
                 
                 ' Get the Version
                 Console.WriteLine(oSmtpDotNet.Version())
            End Function
            

See Also

SmtpServer Class | SmtpServer Members | SmtpDotNet Namespace