sending emails successfully via email templates