Moving mail config into send_email