made send_email.js public rather than private