Patch 1

Hope I'm doing this right, just a couple of minor code changes. One to correct hard coded ssl setting for smtp and the other to use the correct default for event messages which allows event name substitution.