w3JMail Reference

Reference 4.5

 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'


Dimac w3 JMail is composed of several objects. The most important one is the Message object. You will best get acquainted with them, by reading the examples provided. If you are running the old version of w3 JMail (3.7), you can find the reference in the menu to the left.