How to test mail functionality on a server