See Also

Attachment Members  | ceTe.FireMail Namespace

Requirements

Namespace: ceTe.FireMail

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 mail attachment.

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

Object Model


Inheritance Hierarchy

System.Object
   ceTe.FireMail.AttachmentBase
      ceTe.FireMail.Attachment

Syntax

[Visual Basic]
Public Class Attachment    Inherits AttachmentBase
[C#]
public class Attachment : AttachmentBase

Remarks

An attachment can be created by using file or stream or byte array.

Example

The below example shows how to create a simple attachment and add it to the message

[Visual Basic] 

Imports ceTe.FireMail

Module MyModule

    Sub Main()

        ' Create a plaintext message
        Dim MyMessage As New PlainTextMessage("from@company.com", "to@company.com", "Mail with Attachment", " Files Attached")

        ' Create a Attachment
        Dim ImageAttachment As New Attachment("house.jpg")

        ' Attaching to the attachment list
        MyMessage.Attachments.Add(ImageAttachment)

        ' Send the message
        MyMessage.Send("localhost")

    End Sub

End Module

[C#] 

using ceTe.FireMail; 
  
class MyClass 

    static void Main(string[] args) 
    { 
        // Create a plaintext message 
        PlainTextMessage message = new PlainTextMessage( "from@company.com", "to@company.com", "Mail with Attachment", " Files Attached" ); 
         
        // Create a Attachment 
        Attachment imageAttachment = new Attachment("house.jpg"); 
  
        // Attaching to the attachment list 
        message.Attachments.Add(imageAttachment);     
  
        //Send the message 
        message.Send("localhost");         
    } 

Licensing

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

Requirements

Namespace: ceTe.FireMail

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

Attachment Members  | ceTe.FireMail Namespace

 

 


© Copyright 2007, ceTe Software