New appointment email functionality added