Forum Discussion
YMinaev
Staff
15 years agoHi,
You can check the inbox.Items.Count value before your loop. If it is zero, this means that the inbox is empty. In the if lock which will check this, you need to do what you'd do in the case if your message is not received.
You can check the inbox.Items.Count value before your loop. If it is zero, this means that the inbox is empty. In the if lock which will check this, you need to do what you'd do in the case if your message is not received.