--- privatemsg.module.orig	2008-12-18 08:26:33.000000000 -0800
+++ privatemsg.module	2009-06-05 13:11:20.000000000 -0700
@@ -638,6 +638,7 @@ function pm_send($form, &$form_state) {
   // Each recipient gets a record in the pm_index table.
   $query = "INSERT INTO {pm_index} (mid, thread_id, uid, is_new, deleted) VALUES (%d, %d, %d, %d, 0)";
   foreach ($message['recipients'] as $recipient) {
+    $recipient_names[] = theme('username', $recipient);
     $mid = $message['mid'];
     $thread_id  = $message['thread_id'];
     db_query($query, $mid, $thread_id, $recipient->uid, 1);
@@ -645,7 +646,7 @@ function pm_send($form, &$form_state) {
   // Also add a record for tha author to the pm_index table - set  column "new" to 0.
   db_query($query, $mid, $thread_id, $message['author']->uid, 0);
 
-  drupal_set_message(t('A message has been sent to @recipients.', array('@recipients' => $form_state['values']['recipient'])));
+  drupal_set_message(t('A message has been sent to !recipients.', array('!recipients' => implode(', ', $recipient_names))));
 }
 
 function pm_preview($form, &$form_state) {
@@ -919,14 +920,17 @@ function privatemsg_form_alter(&$form, $
           $user_blocked = module_invoke_all('privatemsg_block_message', $user, $recipient);
           if (!count($user_blocked) <> 0 && $recipient->uid) {
             $to[] = $recipient->name;
+            $to_names[] = theme('username', $recipient);
           }
         }
         if (empty($to) && $usercount >= 1) {
           // Assume the user sent message to own account as if the usercount is one or less, then the user sent a message but not to self.
           $to[] = $user->name;
+          $to_names[] = theme('username', $user);
         }
         if ($to) {
           $recipients = implode(', ', $to);
+          $recipients_names = implode(', ', $to_names);
         }
 
         $form['privatemsg']['thread_id'] = array(
@@ -941,7 +945,7 @@ function privatemsg_form_alter(&$form, $
           '#type' => 'value',
           '#default_value' => $recipients,
         );
-        $form['privatemsg']['body']['#title'] = t('Send reply to %recipient', array('%recipient' => $recipients));
+        $form['privatemsg']['body']['#title'] = t('Send reply to !recipient', array('!recipient' => $recipients_names));
         $form['privatemsg']['body']['#required'] = TRUE;
 
         if (empty($to)) {
@@ -1000,4 +1004,3 @@ function privatemsg_per_message_actions(
 function privatemsg_privatemsg_pm_controls($pmid) {
   return l(t('Delete message'), 'messages/delete/'. $pmid);
 }
-
