Customer retention is fundamental for any Ecommerce operation and website registration is a great way to accommodate needs of repeat customers and building long term relationships. Magento sends registration Email to customers when they sign up or register. But what about admin or store owner? It doesn’t notify admin for new registration and thus store owner stays uninformed about this key event or he has to check the admin panel frequently which wastes time. Today we have come up with custom code to send Email to admin after customer registration in Magento 2.

Sending Email notification to admin after customer registration simply requires to create an event & observer to serve your need.

Let’s see the steps to send Email to admin after customer registration in Magento 2

Create events.xml file in \app\code\Namespace_Modulename\etc\frontend\ and add following code. Here, we need to define an event for Send mail after customer registration.

Create SendMailToAdmin.php file in \app\code\Namespace_Modulename\Observer\. This observer class is used to send mail after customer is registered successfully.

Creating custom code to send Email notification to admin after customer registration is not a tough cookie to crack. You need to simply follow the steps above and you are done. Let me know if you stuck somewhere or have any queries through commenting, I would be glad to help you!

Click to rate this post!
[Total: 18 Average: 3.9]