Add debug utility
Added smtp example