Skip to main content
Version: v6.5.0

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

parameterrequiredtypeDefault valuedescribe
strDomainTruestring""AD domain to connect to
strUserNameTruestring""Exchange account used for sending emails
strPasswordTruestring""Exchange account password for sending emails
strServerTruestring""Exchange server address
strEmailAutoDiscoverTruestring""Use this email address to automatically search for servers, which is effective when the server enables automatic discovery
objMailMessageTrueexpression{}Email objects in the mailing list
strFolderNameTruestring""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("" ,"" ,"" ,"" ,"" ,{} ,"")