diff --git a/lib/WeBWorK/ContentGenerator/Feedback.pm b/lib/WeBWorK/ContentGenerator/Feedback.pm index 2082d978b2..d9ae0aa99d 100644 --- a/lib/WeBWorK/ContentGenerator/Feedback.pm +++ b/lib/WeBWorK/ContentGenerator/Feedback.pm @@ -143,16 +143,13 @@ sub initialize ($c) { my $systemURL = $c->url_for('root')->to_abs; - my $msg = qq/This message was automatically generated by the WeBWorK -system at $systemURL, in response to a request from $remote_host:$remote_port. - -Click this link to see the page from which the user sent feedback: -$emailableURL - -/; + my $msg = + sprintf("This message was generated by WeBWorK at\n%s\nin response to a request from %s (%s) at\n%s\n\n", + $systemURL, $user->full_name, $user->user_id, "$remote_host:$remote_port"); + $msg .= "To visit the page from which the user sent feedback, go to:\n$emailableURL\n\n"; if ($feedback) { - $msg .= qq/***** The feedback message: *****\n\n\n$feedback\n\n\n/; + $msg .= sprintf("%s (%s) wrote:\n\n\n%s\n\n\n", $user->full_name, $user->user_id, $feedback); } if ($problem and $verbosity >= 1) { $msg .=