Rector missed a deprecated class being removed for commerce abandoned cart.
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3438221. -->
Reported by: [nicxvan](https://www.drupal.org/user/531480)
>>>
<h2>Drupal version</h2>
<p>10 and 11</p>
<h2>Drupal Rector version</h2>
<p>The below is for the 11 update.<br>
Debug information<br>
Bot run #11-137198</p>
<p>These packages were used to generate the fixes:</p>
<p> drupal/upgrade_status: 4.1.0<br>
mglaman/phpstan-drupal: 1.2.10<br>
palantirnet/drupal-rector: 0.20.1</p>
<h2>Problem / Motivation</h2>
<p><a href="https://www.drupal.org/project/commerce_abandoned_carts/issues/3352519">https://www.drupal.org/project/commerce_abandoned_carts/issues/3352519</a><br>
Drupal\Component\Utility\Mail was removed in Drupal 10<br>
I don't think rector picked it up because while the replacement has not been merged the Drupal 11 rector scan still has not updated it:</p>
<p><a href="https://www.drupal.org/project/commerce_abandoned_carts/issues/3438216">https://www.drupal.org/project/commerce_abandoned_carts/issues/3438216</a></p>
issue