Added smtp encryption support