Fix a bug that mimetypes are always text/plain in mock mode.

After calling buildMimeMessage(), also saveChanges() should be called to set content types correctly.