How do we change a customer's email programatically in Magento 2?
Magento – How do we change customer email programmatically in Magento 2
customer-accountemailmagento-2.1magento2
customer-accountemailmagento-2.1magento2
How do we change a customer's email programatically in Magento 2?
Best Answer
Use
\Magento\Customer\Api\CustomerRepositoryInterface
to change customer information.