Hi i want to send a confirmation email to the customer after successful payment in code. how to do this in magento 2 ?
Yes - you can send email to customer using code level or we can say that programatically.
below i am sharing links for how to send email programatically refer this.
Hope it helps