Download attachments
Command Description
Download attachments from the specified email object
Command Prototype
Exchange.DownloadAttachments(strDomain ,strUserName ,strPassword ,strServer ,strEmailAutoDiscover ,objMailMessage, strSaveDir)
Command parameter
parameter | required | type | Default value | describe |
---|---|---|---|---|
strDomain | True | string | "" | AD domain to connect to |
strUserName | True | string | "" | Exchange account used for sending emails |
strPassword | True | string | "" | Exchange account password for sending emails |
strServer | True | string | "" | Exchange server address |
strEmailAutoDiscover | True | string | "" | Use this email address to automatically search for servers, which is effective when the server enables automatic discovery |
objMailMessage | True | expression | {} | Email objects in the mailing list |
strSaveDir | True | path | ''' C:\Users''' | Email attachment save path |
Return result
Run instance
/*********************************下载附件****************************************
命令原型:
Exchange.DownloadAttachments(strDomain ,strUserName ,strPassword ,strServer ,strEmailAutoDiscover ,objMailMessage, strSaveDir)
入参:
strDomain--域.注:要连接的AD域
strUserName--用户名.注:用于发送邮件的Exchange帐户
strPassword--密码.注:用于发送邮件的Exchange帐户密码
strServer--服务器地址.注:Exchange服务器地址
strEmailAutoDiscover--自动发现地址.注:使用该邮箱地址自动搜索服务器,服务器开启自动发现时有效
objMailMessage--邮件对象.注:邮件列表中的邮件对象
strSaveDir--保存路径.注:邮件附件保存路径
出参:
无
注意事项:
无
********************************************************************************/
Exchange.DownloadAttachments("" ,"" ,"" ,"" ,"" ,{}, '''C:\Users''')