api to send a email