See Also

NtlmAuthentication Members  | ceTe.FireMail.Security Namespace

Requirements

Namespace: ceTe.FireMail.Security

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.FireMail (in ceTe.FireMail.dll)

Language

Visual Basic

C#

Show All

Represents a NTLM authentication.

For a list of all members of this type, see NtlmAuthentication members.

Inheritance Hierarchy

System.Object
   ceTe.FireMail.Security.Authentication
      ceTe.FireMail.Security.PasswordAuthentication
         ceTe.FireMail.Security.NtlmAuthentication

Syntax

[Visual Basic]
Public Class NtlmAuthentication    Inherits PasswordAuthentication
[C#]
public class NtlmAuthentication : PasswordAuthentication

Remarks

NTLM authentication class will automatically decide the version of authentication to be used, provided SMTP server supports NTLM authentication.

Example

This example shows the usage of NTLM authentication.

[Visual Basic] 

Imports ceTe.FireMail
Imports ceTe.FireMail.Security

Module MyModule

    Sub Main()

        ' Create a Plain text message
        Dim MyMessage As New PlainTextMessage("from@company.com", "to@company.com", _
                            "Authentication Example", "Example for Basic Authentication")

        ' Create a basic authentication instance
        Dim MyAuthentication As New NtlmAuthentication("UserName", "Password", "Domain", "Workstation")

        ' Create a Connection
        Dim MyConnection As New Connection("localhost", MyAuthentication)

        ' Send the message using the created connection
        MyMessage.Send(MyConnection)

    End Sub

End Module

[C#] 

using ceTe.FireMail; 
using ceTe.FireMail.Security; 
  
class MyClass 

    static void Main(string[] args) 
    { 
        PlainTextMessage message = new PlainTextMessage( "from@company.com", "to@company.com", 
            "Authentication Example", "Example for Basic Authentication" ); 
  
        // Create a basic authentication instance 
        NtlmAuthentication authentication = new NtlmAuthentication("UserName", "Password", "Domain", "Workstation" ); 
  
        // Create a Connection 
        Connection connection = new Connection( "localhost", authentication ); 
  
        // Send the message using the created connection 
        message.Send( connection ); 
         
    } 

Licensing

This class is a FireMail feature. One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.FireMail.Security

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.FireMail (in ceTe.FireMail.dll)

See Also

NtlmAuthentication Members  | ceTe.FireMail.Security Namespace

 

 


© Copyright 2006, ceTe Software