Change mail properties to a more generic way
Change to slf4j, fix test configuration