Magento2.3.1 How to add customer grid mass action link reset forget password and custom reset forget email sent to customer

I am using Magneto 2.3.1 and how to add customer mass-action inside link add reset forget password and when select customer sent to email for customer, but email not use in default Magento our custom email assign and set it.

If this type of work and idea reply me...


Please use below code in controller :

public function __construct(
    Magento\Framework\App\Action\Context $context,
    Magento\Customer\Model\Session $customerSession,
    Magento\Customer\Api\AccountManagementInterface $customerAccountManagement,
) {
    $this->session = $customerSession;
    $this->customerAccountManagement = $customerAccountManagement;

public function sendCustomMail()

            $email = '[email protected]'; // loop your email.

            try {
            } catch (NoSuchEntityException $e) {
                // Do nothing, we don't want anyone to use this action to determine which email accounts are registered.
            } catch (\Exception $exception) {
                    __('We\'re unable to send the password reset email.')

Similar questions

M2 - Mass mailing reset password email
I want to send all the user the reset password email, we have over 6000 user so it can't be done by hand. I found this script from this website: But that isn't working :( Is there a way to make this script work or maybe another solution?
Magento2: How to get Reset password link in custom email template
How to get Reset password link in the custom email template? I am able to get a token like this - but when click then getting a message like this "Reset password link has expired"
Create and send email to customer reset password link programmatically in magento
How to create a reset password link in magento and then send the mail to the corresponding customer.I have referred this link: But i don't know what is going inside that code.So kindly answer to solve this.I want to done it manually(programmatically)
Magento 2 - Order # 000000094 (The order confirmation email is not sent) - Order Placed Successfully but confirmation email is not sent
I am facing this issue many times. when i place any order from front-end side, the order placing successfully and it's show order number. but when i check this order on my back-end admin it show this (The order confirmation email is not sent) message. and nothing on my mail box. i send this order mail manually pressing "send email" button. is that ...
Magento 2, How to create API for customer forget password?
Using Magento, API. I need to create an API for customer send forget password. I found the page that allows to customer send e-mail for request change password but I don't how to use this page for web service.
Magento2 add new cloumn and mass action in newsletter admin grid
How we can add "new column" and "new action" in newsletter in magento2 admin grid as Newsleter doesn't have ui_component . So anybody can please help me as i can see newsletter grid is coming from newsletter_subscriber_block.xml

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.