Skip to main content
Version: v6.5.0

Download attachments

Command Description

Download attachments for Office 365 Outlook mail objects

Command Prototype

Office365.DownloadAttachments(o365Ctx ,strAccount ,objMailMessage ,strLocPath)

Command parameter

parameterrequiredtypeDefault valuedescribe
o365CtxTrueexpressiono365CtxObjects returned by connecting to the Office365 server
strAccountTruestring""Account to be operated
objMailMessageTrueexpression{}Email objects in the mailing list
strLocPathTruepath''' C:\Users'''Attachment save path

Return result

Run instance

/*********************************下载附件****************************************
命令原型:
Office365.DownloadAttachments(o365Ctx ,strAccount ,objMailMessage ,strLocPath)
入参:
o365Ctx--Office365对象.注:连接Office365服务器返回的对象
strAccount--帐户.注:待操作的帐户
objMailMessage--邮件对象.注:邮件列表中的邮件对象
strLocPath--保存路径.注:附件保存路径
出参:

注意事项:

********************************************************************************/
Office365.DownloadAttachments(o365Ctx ,"" ,{} ,'''C:\Users''')