Resigning via email may be your safest option. In this instance, you're not sacrificing anything by severing the connection because it's unlikely that your boss would provide you with a recommendation, anyway. Most importantly, you're protecting yourself, which comes before career considerations.