Update to base-1.3.1.jar, and update mail sending code for compatibility with base-1.3.1.jar