Represents a mail attachment.
For a list of all members of this type, see Attachment members.
![]() ![]()
|
ceTe.FireMail.AttachmentBase
ceTe.FireMail.Attachment
[Visual Basic]
Public Class Attachment
Inherits AttachmentBase[C#]
public class Attachment : AttachmentBaseAn attachment can be created by using file or stream or byte array.
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; |
This class is a FireMail feature. One of the following licenses is required for non-evaluation usage:
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)
Attachment Members | ceTe.FireMail Namespace
© Copyright 2006, ceTe Software