You can use Universal Email to send out an email to the user on any of your pages. I think the best place for an order confirmation email would be at the end of your IPN page. You can just add in the UE server behavior and have it send to the payer email value.
To send an email automatically when the user registers you can add UE to the registration page, just make sure it occurs after the insert for the user's details.