how we can used email receipt while doing invoice on POS.

i want to configure the email receipt functionality on ax after sales invoice posted in ax, how we can do it and what are the basic setup required to run this functionality.