How to send a letter with details of the order in the code?

I want when the order is in pending, I sent a letter about it with details of your order. I found a similar solution Click! it basically works, but order details not send. Ie no product names, quantities and prices. How can I fix it or you can use another option?
June 5th 19 at 21:00

Find more questions by tags WooCommerceWordPress