? mail.patch
Index: ec_mail/ec_mail.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/ec_mail/ec_mail.module,v
retrieving revision 1.1.2.16.2.13
diff -u -p -r1.1.2.16.2.13 ec_mail.module
--- ec_mail/ec_mail.module	25 Apr 2007 01:36:19 -0000	1.1.2.16.2.13
+++ ec_mail/ec_mail.module	8 Jun 2007 00:10:12 -0000
@@ -652,7 +652,7 @@ function ec_mail_send_mail(&$mail) {
     $mail['from'] = variable_get('site_mail', ini_get('sendmail_from'));
   }
   
-  drupal_mail('ec_'. str_replace(' ', '_', $mail['type']), $mail['to'], $mail['subject'], $mail['body'], $mail['from']);
+  return drupal_mail('ec_'. str_replace(' ', '_', $mail['type']), $mail['to'], $mail['subject'], $mail['body'], $mail['from']);
 }
 
 /**
Index: shipping/shipping.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/shipping/shipping.module,v
retrieving revision 1.43.2.3.2.1.2.11
diff -u -p -r1.43.2.3.2.1.2.11 shipping.module
--- shipping/shipping.module	25 Apr 2007 04:38:05 -0000	1.43.2.3.2.1.2.11
+++ shipping/shipping.module	8 Jun 2007 00:10:13 -0000
@@ -695,8 +695,8 @@ function shipping_mail_types() {
 function shipping_mail_reset($type) {
   $mids = array();
   if ($type == ECMAIL_TYPE_SHIP_NOTICE) {
-    $defsub = t("Your %site order has shipped (#%txnid)");
-    $defbody = t("Hello %first_name,\n\nWe have shipped the following item(s) from Order #%txnid, received  %order_date.\n\nItems(s) Shipped:\n%items\n%shipping_to\nQuestions about your order? Please contact us at %email.\n\nThanks for shopping at %site.  We hope to hear from you again real soon!\n\n%uri");
+    $defsub = t("Your [site-name] order has shipped (#[txn-id])");
+    $defbody = t("Hello %first_name,\n\nWe have shipped the following item(s) from Order #[txn-id], received  [txn-order_date].\n\nItems(s) Shipped:\n[items]\n[txn-ship-to]\nQuestions about your order? Please contact us at [site-mail].\n\nThanks for shopping at [site-name].  We hope to hear from you again real soon!\n\n[site-url]");
     $mid = ec_mail_import_old_mail('Default shipping notification', ECMAIL_TYPE_SHIP_NOTICE, 'shipping_email_shipping_notification_subject', $defsub, 'shipping_email_shipping_notification_body', $defbody);
     ec_mail_variable_change(ECMAIL_TYPE_SHIP_NOTICE, $mid, TRUE);
   }
Index: store/store.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/store/store.module,v
retrieving revision 1.125.2.23.2.17.2.54
diff -u -p -r1.125.2.23.2.17.2.54 store.module
--- store/store.module	8 May 2007 11:18:28 -0000	1.125.2.23.2.17.2.54
+++ store/store.module	8 Jun 2007 00:10:16 -0000
@@ -2583,7 +2583,7 @@ function store_name_measure($type = 'wei
  * Implements hook_token_list() from the token module.
  */
 function store_token_list($type = 'all') {
-  if (in_array($type, array('all', STORE_TOKEN_TYPE, ECMAIL_TYPE_CUSTOMER_INVOICE, ECMAIL_TYPE_PROCESSING_ERROR, ECMAIL_TYPE_CANCEL_TXN, ECMAIL_TYPE_ASK_CUSTOMER))) {
+  if (in_array($type, array('all', STORE_TOKEN_TYPE, ECMAIL_TYPE_CUSTOMER_INVOICE, ECMAIL_TYPE_PROCESSING_ERROR, ECMAIL_TYPE_CANCEL_TXN, ECMAIL_TYPE_ASK_CUSTOMER, ECMAIL_TYPE_SHIP_NOTICE))) {
     $vars[STORE_TOKEN_TYPE]['txn-id']                = t('Transaction ID.');
     $vars[STORE_TOKEN_TYPE]['txn-balance']           = t('Transaction balance.');
     $vars[STORE_TOKEN_TYPE]['txn-order-date']        = t('Date the order/transaction was created.');
@@ -2613,7 +2613,7 @@ function store_token_list($type = 'all')
  * Implements hook_token_values() from the token module.
  */
 function store_token_values($type, $object = NULL) {
-  if (in_array($type, array(STORE_TOKEN_TYPE, ECMAIL_TYPE_CUSTOMER_INVOICE, ECMAIL_TYPE_PROCESSING_ERROR, ECMAIL_TYPE_CANCEL_TXN, ECMAIL_TYPE_ASK_CUSTOMER))) {
+  if (in_array($type, array(STORE_TOKEN_TYPE, ECMAIL_TYPE_CUSTOMER_INVOICE, ECMAIL_TYPE_PROCESSING_ERROR, ECMAIL_TYPE_CANCEL_TXN, ECMAIL_TYPE_ASK_CUSTOMER, ECMAIL_TYPE_SHIP_NOTICE))) {
     global $base_url;
 
     $txn = (object) $object;
