add send email function
change usage