Example

Object reference
» Recipient » MailMerge » Attachment » Recipients » Message » Headers


JMail 4.4
Manual
 
 
 JMail.Attachment
    ContentType : String
    Data : String
    isInline : Boolean
    Name : String
    Size : Integer
    New(FileName, ContentType, Data ) : Pointer
    SaveToFile(FileName ) : 

Properties

  ContentType() : 
Returns the content type of the attachment.
'Response.Write( Attachment.ContentType )'
 
  Data() : 
Returns the attachment's data.
'Response.Write( Attachment.Data )'
 
  isInline() : 

null
 
  Name() : 
Returns the attachment's filename.
'Response.Write( Attachment.Name )'
 
  Size() : 
Returns the attachment's size.
'Response.Write( Attachment.Size )'
 
 

Methods

  New(FileName, ContentType, Data) : 
Creates a new Attachment object which you can add to the Attachments collection. If Data is specified w3 JMail creates a custom attachment containing the data, else it reads FileName from the disk.
'set attachment = Attachment.New( "myAttachment.text", 
"text/plain", "this is my new text file" )'
 
  SaveToFile(FileName) : 
Saves the attachment to the disk.
'Attachment.SaveToFile "c:\incomingAttachments\" 
& Attachment.Name'