简体   繁体   中英

Send email to user when admin create new user in magento admin panel

Is there any way to send email to user when admin creates it in magento admin panel? I have been looking at Magento's available events , but i dont think if they have any when a user is created.

Mage::dispatchEvent('adminhtml_customer_prepare_save', array(
    'customer'  => $customer,
    'request'   => $this->getRequest()
));    


Mage::dispatchEvent('adminhtml_customer_save_after', array(
    'customer'  => $customer,
    'request'   => $this->getRequest()
));

There are two event trigger when an admin is creates a User from admin panel as I mention above, you can create a observer and hook to those event and can able to send your custom email accordingly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM