I am having trouble getting the getNewMailItem() method to work. Everything compiles fine, but it returns null every time even if there are multiple mail items in the server. Can anyone help me with this? I have tried using the debugger to step through and do not see any issues, but maybe I'm missing something. Thanks in advance!
There is no error. It just isn't returning the correct results. It is the getNextMailItem() method that is returning null. How it runs is that you create a server object. Then you create mail client objects on that server, and then can send mail items to each other. When I do send one, it is returning null for the getNextMailItem() method for the person it is sent to. Does that make sense?