added function for send email with template
test