Set flag on delivery carrier where confirmation mail shoul be sent.
To install this, follow below steps:
Delivery Traceability
Order Confirmation State on Stock
Work Time Report on Invoice