Moved the smtp object in to the IoC