Fixing send_mail not defined