DeleteMail (FB)¶
FUNCTION_BLOCK DeleteMail EXTENDS CBM.ETrigTo
The “DeleteMail” function block establishes a connection with the username and password from the userInfo variable to the specified mail server and deletes a email through it mail ID. The mail ID is essential for deleteing the mail on the server.
- InOut:
- Scope - Name - Type - Comment - Inherited from - Input - xExecute- BOOLRising edge: Action startsFalling edge: Resets outputsIf a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (- xDone,- xError) are present at the outputs for exactly one cycle.- ETrigTo - udiTimeOut- UDINT- Defines the time (µs) after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message. - ETrigTo - Output - xDone- BOOL- TRUE: Action successfully completed- ETrigTo - xBusy- BOOL- TRUE: Function block active- ETrigTo - xError- BOOL- TRUE: Error occurred, function block aborts action- FALSE: No error- ETrigTo - Inout - ServerFB- Input - MailToDelete- The email which will be deleted. - userInfo- Authentication information, to establish a connection to the email server. - Output - eError- Local library error ID - sServerMessage- STRING(255)- Detailed error message from the server