Skip to main content

Delete-Email

Command Description

Delete specified mail

Command Prototype

IMAP.DeleteMail(objIMAP,objMail)

Parameter Description

ParameterRequiredTypeDefaultDescription
objIMAPTrueexpressionobjIMAPThe controllable connection object returned by the "connect mailbox" command
objMailTrueexpressionobjMailMail message object

Demo

mailList = IMAP.GetMailList(objIMAP,"Inbox",1,false,false,"") 
IMAP.DeleteMail(objIMAP,mailList[0])

// null