sending Email via Scala - some more refactoring