Some useful extension methods and other classfor email, logs etc.