See Also

BasicAuthentication 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 Basic Authentication.

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

Inheritance Hierarchy

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

Syntax

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

Remarks

For using this authentication SMTP server should support BASIC authentication mode.

Example

This example shows the usage of basic 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 BasicAuthentication("UserName", "Password")

        ' 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 
        BasicAuthentication authentication = new BasicAuthentication("UserName", "Password" ); 
  
        // 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

BasicAuthentication Members  | ceTe.FireMail.Security Namespace

 

 


© Copyright 2006, ceTe Software