added send_mail call