Set environment and add helpfull message if no emails