Mobile Mail
Command Description
Move Exchange mail objects to the specified folder
Command Prototype
Exchange.MoveMessageToFolder(strDomain ,strUserName ,strPassword ,strServer ,strEmailAutoDiscover ,objMailMessage ,strFolderName)
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 |
strFolderName | True | string | "" | Specify the destination folder for email movement, such as "Inbox", "Drafts", "Sent Items" and other folders |
Return result
Run instance
/*********************************移动邮件****************************************
命令原型:
Exchange.MoveMessageToFolder(strDomain ,strUserName ,strPassword ,strServer ,strEmailAutoDiscover ,objMailMessage ,strFolderName)
入参:
strDomain--域.注:要连接的AD域
strUserName--用户名.注:用于发送邮件的Exchange帐户
strPassword--密码.注:用于发送邮件的Exchange帐户密码
strServer--服务器地址.注:Exchange服务器地址
strEmailAutoDiscover--自动发现地址.注:使用该邮箱地址自动搜索服务器,服务器开启自动发现时有效
objMailMessage--邮件对象.注:邮件列表中的邮件对象
strFolderName--文件夹.注:指定邮件移动的目标文件夹,如"收件箱","草稿","已发送邮件"等文件夹
出参:
无
注意事项:
无
********************************************************************************/
Exchange.MoveMessageToFolder("" ,"" ,"" ,"" ,"" ,{} ,"")