The written communication last month came after the Biden administration warned Tehran against attempts on Trump’s life.