changed send_mail_api to send_mail