attachFile (method)
Creates an attachment from a file.
Syntax
- (int)attachFile:(NSString*)filename;
public func attachFile(_ filename: String) throws -> Int32
Remarks
Use this method to create an attachment from a file. Use Attachments property to provide further attachment details.
The method returns the index of the new attachment in the Attachments list.