--- loncom/interface/lonnotify.pm 2010/07/09 14:40:20 1.37 +++ loncom/interface/lonnotify.pm 2014/01/16 18:07:45 1.40 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Sending messages # -# $Id: lonnotify.pm,v 1.37 2010/07/09 14:40:20 raeburn Exp $ +# $Id: lonnotify.pm,v 1.40 2014/01/16 18:07:45 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -286,11 +286,11 @@ ENDSCRIPT $output .= &Apache::loncommon::start_data_table(); if ($msgcount > 0) { $output .= &Apache::loncommon::start_data_table_header_row(). - 'Date'. - 'Subject'. - 'Sender'. - 'Message'. - 'Recipients'. + ''.&mt('Date').''. + ''.&mt('Subject').''. + ''.&mt('Sender').''. + ''.&mt('Message').''. + ''.&mt('Recipients').''. &Apache::loncommon::end_data_table_header_row(); if (($env{'form.sortby'} eq 'date') || ($env{'form.sortby'} eq '') || (!defined($env{'form.sortby'})) || (($env{'form.sortby'} eq 'sender') && (@senders <= 1))) { @@ -357,7 +357,7 @@ ENDSCRIPT } } else { $output .= &Apache::loncommon::start_data_table_empty_row(). - 'No mail sent matching supplied criteria'. + ''.&mt('No mail sent matching supplied criteria').''. &Apache::loncommon::end_data_table_empty_row(); } $output .= &Apache::loncommon::end_data_table(); @@ -705,7 +705,7 @@ ENDSCRIPT ''.&mt('Status').''. ''.&mt('Subject').''. ''.&mt('Message').''. - ''.&mt('Recipents').''. + ''.&mt('Recipients').''. &Apache::loncommon::end_data_table_header_row(); $output .= &Apache::loncommon::start_data_table_row(). ''.&mt('Sent').''. @@ -720,7 +720,7 @@ ENDSCRIPT &Apache::loncommon::end_data_table_row(). &Apache::loncommon::end_data_table(); } else { - $output .= 'No mail sent - no recipients identified'; + $output .= &mt('No mail sent - no recipients identified'); } $output .= '
'.&mt('Send another e-mail').''."\n"; $output .= ''."\n". @@ -742,6 +742,7 @@ sub broadcast_email { $msg->to($to); $msg->subject($subject); $msg->add('From',"$from"); + $msg->add('Content-type','text/plain; charset=UTF-8'); if (my $fh = $msg->open()) { print $fh $message; $fh->close;