Skip to main content
Version: v6.5.0

Deleted items

Command Description

Delete the specified email object from the Exchange mailbox

Command Prototype

Exchange.DeleteMail(strDomain ,strUserName ,strPassword ,strServer ,strEmailAutoDiscover ,objMailMessage,strDeleteMode)

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
strDeleteModeTrueenum"MoveToTrash"Delete mode

Return result

Run instance

/*********************************删除邮件****************************************
命令原型:
Exchange.DeleteMail(strDomain ,strUserName ,strPassword ,strServer ,strEmailAutoDiscover ,objMailMessage,strDeleteMode)
入参:
strDomain--域.注:要连接的AD域
strUserName--用户名.注:用于发送邮件的Exchange帐户
strPassword--密码.注:用于发送邮件的Exchange帐户密码
strServer--服务器地址.注:Exchange服务器地址
strEmailAutoDiscover--自动发现地址.注:使用该邮箱地址自动搜索服务器,服务器开启自动发现时有效
objMailMessage--邮件对象.注:邮件列表中的邮件对象
strDeleteMode--删除模式.注:删除模式
出参:

注意事项:

********************************************************************************/
Exchange.DeleteMail("" ,"" ,"" ,"" ,"" ,{},"MoveToTrash")