static function send_order_copy($order) { $to = $order->email; $from = basket_plus::getBasketVar(EMAIL_FROM); //add text 'COPY' to the subject $subject = basket_plus::replaceStringsAll(basket_plus::getBasketVar(ORDER_COMPLETE_EMAIL_SUBJECT), $order) . " (" . t("COPY") . ")"; $final_msg = basket_plus::preparehtmlmail($order->text, $from); // give a function your html mail($to, $subject, $final_msg['multipart'], $final_msg['headers']); }