How to Disable Welcome Email After Creating New Customer From Admin in Magento 2

How to Disable Welcome Email After Creating New Customer From Admin in Magento 2

A welcome email is the first impression of the Ecommerce store that a company makes with a new customer, blog subscriber, or newsletter subscriber via email.

Magento 2 provides this facility to send a welcome email to newly registered customers. Along with that, it also sends a welcome email if the admin adds a new customer from the admin panel!

But there may be a situation where you would not want to send a welcome email to the customers!

For instance, your store is converting to Magento 2 CMS from any other CMS platform. In that case, you can’t tell your customers to register again in the same store, and so the admin has to create those customers from the backend. It will impact badly if the customer gets a welcome email again.

Or if you are using a third-party customer management system that sends a welcome email already, you would want to skip the default welcome email sent by Magento. Also, in the case of using a custom template for the welcome email, it is only wise to disable the default Magento 2 welcome email that is sent on creating a new account in the store.

In such cases, he would want to disable the welcome email after creating new account from admin in Magento 2.

In all such scenarios, use the below programmatic solution and disable welcome email after creating a new customer from admin in Magento 2 store.

Method to Disable Welcome Email After Creating New Customer From Admin in Magento 2

    1. Use the below code in the di.xml file at app/code/Vendore/Extension/etc/adminhtml
    2. Use the below code in the EmailNotification.php file at app/code/Vendore/Extension/Plugin

We have to use the di.xml file located in the adminhtml because email should be disabled if the admin creates a customer from the admin side.

That’s it.

Any doubts regarding this post? If yes, do mention them in the Comments section below. I’d be happy to help.

Also, do share the post with Magento Community via social media.

Thank you.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

(based on 11 Reviews)

Dipak is a Magento Developer at Meetanshi. Apart from work, he loves playing cricket with his friends. Traveling and exploring new places is something that he is passionate about.

Leave a reply:

Your email address will not be published.