added email sending and ace template