The MailAddFile method can be used to attach files to the email message.
Exhibit 11.5. IDL Definition of method to adding attachments
HRESULT MailAddFile ([in] BSTR b_filepath);
|
Exhibit 11.6. Example usage of method to adding attachments (VBScript)
app.MailAddFile "c:\\myattachment.txt"
|