Automate PAYMENT RECEIVED email

Automate PAYMENT RECEIVED email

In BOOKS - how do I make it automatically send a Payment Received, Thank you email to my Customer when I match a transaction to an Invoice (thereby making it PAID)?

Thank you for your help.