function _send_email($order_hash, $subject, $body, $to = NULL)
 {
     $retval = FALSE;
     // Get the destination url
     $order_details_page = $this->get_thank_you_page_url($order_hash, TRUE);
     // Ensure that we have a valid order
     if ($order = C_Order_Mapper::get_instance()->find_by_hash($order_hash)) {
         // Get needed components
         $mail = C_Nextgen_Mail_Manager::get_instance();
         // Set additional order variables
         $order->order_details_page = $order_details_page;
         $order->total_amount = M_NextGen_Pro_Ecommerce::get_formatted_price($order->total_amount, FALSE, FALSE);
         $order->admin_email = bloginfo('admin_email');
         $order->blog_description = bloginfo('description');
         $order->blog_name = bloginfo('name');
         $order->blog_url = site_url();
         $order->site_url = site_url();
         $order->home_url = home_url();
         $order->order_id = $order->ID;
         // Determine item count
         $item_count = 0;
         $file_list = '';
         foreach ($order->cart['images'] as $image) {
             $imageObj = C_Image_Mapper::get_instance()->find($image[$image['id_field']]);
             $name = pathinfo($imageObj->filename);
             $name = $name['filename'];
             if ($item_count == 0) {
                 $file_list = $name;
             } else {
                 $file_list .= ',' . $name;
             }
             foreach ($image['items'] as $tmpid => $item) {
                 // TODO: remove this if. I can't determine why these are being added as items
                 if (in_array($tmpid, array('ngg_digital_downloads', 'ngg_manual_pricelist'))) {
                     continue;
                 }
                 $item_count += intval($item['quantity']);
             }
         }
         $order->item_count = $item_count;
         $order->file_list = $file_list;
         // Send the e-mail
         $content = $mail->create_content();
         $content->set_subject($subject);
         $content->load_template($body);
         foreach (get_object_vars($order) as $key => $val) {
             $content->set_property($key, $val);
         }
         $mail->send_mail($content, $to ? $to : $order->email);
         $retval = TRUE;
     }
     return $retval;
 }
        ?>
</span>
                                </td>
                                <td>
                                    <?php 
        esc_html_e($item->title);
        ?>
                                </td>
                                <td class='ngg_order_price_column'>
                                    <?php 
        echo M_NextGen_Pro_Ecommerce::get_formatted_price($item->price);
        ?>
                                </td>
                                <td>
                                    <?php 
        echo M_NextGen_Pro_Ecommerce::get_formatted_price($item->price * $item->quantity);
        ?>
                                </td>
                            </tr>
                        <?php 
    }
    ?>
                    </table>
                </td>
            </tr>
        <?php 
}
?>
    </table>
</div>