Order Tracking not showing up in shipment email

Possibly a little late for this, but....

There's a thread on the Magento forums here: http://www.magentocommerce.com/boards/viewthread/9594/

If you look at the code for Mage_Sales_Model_Order_Shipment_Api, the confirmation email is being sent out as part of the create() function. Then, the tracking details are added later with a call to addTrack(), but by that time, the email is already sent.

The suggested solution is to edit the source and move the call to $shipment->sendEmail(), but I suspect that that isn't the most elegant solution - I suspect you'd be better off extending the class instead, and doing it that way.