That depends on your checkout system. You would apply the "Send Email Message" server behavior on the page after payment has been made or after orders were stored into the database. Usually that is done on the confirm.php page or the success page. It can be automatically applied by the checkout server behavior as well.