Started working on send_email function