EmailAttachment
Class EmailAttachment

Method PrototypeDescription
Sub Constructor()initialize to default options

Sub ContentEncoding( Assigns newValue As String )set content encoding of attachment
Function ContentEncoding() As Stringget content encoding of attachment

Sub Data( Assigns newValue As String )set contents of the attachment
Function Data() As Stringget contents of the attachment

Sub LoadFromFile( file As FolderItem )attach the passed FolderItem
Function SaveToFile( file As FolderItem ) As Booleansave EmailAttachment to file

Sub MacCreator( Assigns newValue As String )set the four character Macintosh creator code
Function MacCreator() As Stringget the four character Macintosh creator code

Sub MacType( Assigns newValue As String )set the four character Macintosh type code
Function MacType() As Stringget the four character Macintosh type code

Sub MIMEType( Assigns newValue As String )set the MIME type of the attached file
Function MIMEType() As Stringget the MIME typed of the attached file

Sub Name( Assigns newValue As String )set the name of the attached file
Function Name() As Stringget the name of the attached file


The EmailAttachment class allows you to send and receive files as attachments to an EmailMessage (using a POP3Socket or SMTPSocket).