* Replace in the GetMailObject method THIS.oInbox=THIS.GetFolder(lcRequiredFolder) * With IF UPPER(lcRequiredFolder) = UPPER("Inbox") THIS.oInbox=THIS.oNameSpace.GetDefaultFolder(6) ELSE THIS.oInbox=THIS.GetFolder(lcRequiredFolder) ENDIFThere maybe better ways to do that but it did work for me so I'm not going to spend more time on it.