How to send an order confirmation email programmatically?

See also: