I want to send email when admin add new product or update product having product name, image & short description. Can you know new product or updated product?

1 Answer 1


You can use the event catalog_product_save_after.
You will receive in your observer as parameter the product instance.

Something like this:

public function sendProductEmail($observer)
    $product = $observer->getEvent()->getProduct();
    $name = $product->getName();
    $shortDescription = $product->getShortDescription();
    if ($product->getImage()) {
        $imageUrl = $product->getImageUrl();
    } else {
        $imageUrl = null;
    //send mail here.
  • When product image is not present then shows Image file was not found error how to check image present or not.
    – Vishal
    Nov 9, 2016 at 14:33
  • I think it will show you the placeholder image, but see my edit
    – Marius
    Nov 9, 2016 at 14:36
  • Can i check invertory qty & stock availability when admin add new product?
    – Vishal
    Nov 9, 2016 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.