Sorry I'm coming to this rather late. I think it would be much better
to use the Global::smtpSender variable for this. Here's what it does
(look at your webworkCourse.ph file):
# In addition, the smtp mail sender (defined in Global.pm) requires a valid single
# email address. Normally this is set to the address of the course administrator.
# Undeliverable email from the Send Mail page will be returned to the smtpSender address.
# Uncomment the line below and enter a valid email address (if you leave it commented
# out the webmaster's email address from Global.pm will be used).
$Global::smtpSender = 'firstname.lastname@example.org';
If not defined in webworkCourse.ph , it defaults to (from Global.pm)
$smtpSender = $webmaster; # should be redefined for each course in webworkCourse.ph
<| Post or View Comments |>