fixes issue #173

Added a UseSystemNetMailSettings configuration option (default:false) to
achieve the desired behavior.
Fixed code style