ERPNext Sending Two Emails on Sales Invoice Submit — How to Stop the Extra One?

I created a custom script in ERPNext that sends an email with the Sales Invoice PDF to the customer when the invoice is submitted. It also adds the person who submitted the invoice in the CC.

The email from my script works fine — it has the correct subject, sender name, CC, and attached PDF.

But the problem is, two emails are being sent:

  • One is the correct email from my custom script.
  • The second one is a plain system-generated email without a PDF.

Why is this second email being sent?
How can I stop it so that only my custom email goes out?

Hi @Nishit33

Please check Notification List where you may have configured notification on sales invoice submission.

Hey @ahsantareen Thank you that was exactly the issue the extra email was being sent due to an Email Alert on the Sales Invoice really appreciate your quick and clear guidance.