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.
https://www.metagento.com/blog/magento-2-send-email-programmatically.html
Hope it helps
Hello @akshay_kapase
I know its very old post to post here but its about helping the community or someone who is looking for the solution of this problem.
We have developed free extension based on our blog we wrote on same issue, Here is the extension link https://magecomp.com/magento-2-order-confirmation-email.html
We try to make it easy for everyone community member, some of them may not be able to write code as per the blog we have written over here,
https://magecomp.com/blog/send-order-confirmation-email-after-successful-payment-magento-2/