A mail implementation written by java