DeleteMail |
This Web service operation is used to delete a single mail from the mail server. To use this API, you must set a valid profile. If not, an 'Authentication Failed' error is thrown.
SOAP Request
<DeleteMail xmlns="http://schemas.cordys.com/1.0/email">
<messageId>1</messageId>
<folder>Inbox</folder>
</DeleteMail>
<DeleteMail xmlns="http://schemas.cordys.com/1.0/email"> <messageId>1</messageId> <folder>Inbox</folder> </DeleteMail>
Request Parameters
Parameter |
Description |
---|---|
messageId |
Specifies the serial number of the mail in the mail box. It is always denoted in the reverse chronological order. Example: The messageId of the oldest mail is
1.
|
folder |
Specifies the folder in the mailbox from which the mails must be deleted. |
SOAP Response
<data>
<DeleteMailResponse xmlns="http://schemas.cordys.com/1.0/email" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"/>
</data>
<data> <DeleteMailResponse xmlns="http://schemas.cordys.com/1.0/email" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"/> </data>