History  | 
Attachment (email) 
Minimum version: 3.1 
Purpose 
Assigns a File or ServerFile variable to the Attachment property of the message. 
The attachment will only contain data that has been read into the File or ServerFile object. If no data is present, the file isn't attached. 
Multiple files can be attached by calling Attachment as if it were an array. 
Syntax 
Message.Attachment [(AttachmentNumber)] = File 
Example 
Dim f as File 
Dim msg as EMail 
f.OpenFile("c:\boot.ini",fcRead) 
f.Read(1024) 
msg.To="Administrator" 
msg.From="Administrator" 
msg.Subject="Attachment Test" 
msg.Attachment=f 
msg.Attachment(1)=f 
msg.Attachment(2)=f 
msg.Send 
 | ||