Delete-Email
Command Description
Delete specified mail
Command Prototype
IMAP.DeleteMail(objIMAP,objMail)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objIMAP | True | expression | objIMAP | The controllable connection object returned by the "connect mailbox" command |
objMail | True | expression | objMail | Mail message object |
Demo
mailList = IMAP.GetMailList(objIMAP,"Inbox",1,false,false,"")
IMAP.DeleteMail(objIMAP,mailList[0])
// null