Magento Invoice auto email not sent

Magento Invoice auto email not sent

August 6, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento Invoice auto email not sent

Solving Magento Invoice Auto Email Not Sent Issue

If you’re facing an issue where your Magento 1.9 Community Edition is not sending invoice emails for virtual products, despite having enabled invoicing in the system configuration, this guide will walk you through the solution.

Understanding the Issue

When a customer purchases a virtual product and the order status changes to “processing” or “complete”, Magento should automatically send both the order confirmation email and the invoice email. However, if only the order confirmation is being sent but the invoice is missing, it’s likely due to one of two reasons: an issue with the cron job or a problem with the invoice generation process.

Checking Your Cron Job

The cron job is responsible for triggering the automatic email sending process in Magento. To ensure your cron job is working properly:

  1. Log into your server using SSH.
  2. Run the following command to check if your cron jobs are configured correctly: crontab -l
  3. Look for a line that starts with * * * * *. If it’s not present or has an incorrect path, you’ll need to configure it.

Debugging the Invoice Process

If your cron job is working fine but the invoices aren’t being generated, let’s look at the invoice generation process.

Firstly, ensure that the “Invoice” button appears on the order view page. If it doesn’t, go to System > Configuration > Sales > Tax and check the “Enable Tax” box. This usually resolves this issue.

Secondly, check if there are any errors in the system.log file located at app/code/core/Mage/Sales/Model/Order/Invoice.php. Look for any PHP errors or exceptions that might be preventing the invoice from being created.

Re-indexing and Clearing Cache

Sometimes, Magento requires reindexing and cache clearing to function properly. Here’s how you can do it:

  1. Log into your Magento admin panel.
  2. Go to System > Index Management.
  3. Select “All” under Status.
  4. Click the “Submit” button in the top right corner.

Next, clear your cache by going to System > Cache Management and clicking on “Flush All Caches”.

Testing the Solution

To test if the issue has been resolved, place a new order for a virtual product. Check the order view page to see if the “Invoice” button is present and click it to create an invoice.

After creating the invoice, check your email to see if both the order confirmation and the invoice have been sent.

Conclusion

Solving the Magento invoice auto email not sent issue often involves checking the cron job configuration, debugging the invoice generation process in app/code/core/Mage/Sales/Model/Order/Invoice.php, and ensuring that reindexing and cache clearing are performed correctly. Remember to always backup your data before making any changes.

If you’re looking for more advanced solutions or need help with other Magento issues, feel free to reach out to the experts at Laravel Company. They provide professional services for Magento development, including issue resolution and optimization of email sending processes.

Magento 1 Catalog Configuration Cron

Our network