## WeBWorK Main Forum

### Can "Email instructor" be directed to different emails depending on the student's section?

by Debbie Yuster -
Number of replies: 10
Hello,

I am managing several sections of a course in one WeBWorK course. Each section has its own instructor. Rather than having all instructors receive all student emails, is there a way to direct emails from students in Section 1 to Instructor 1, emails from students in Section 2 to Instructor 2, etc?

It doesn't look like this can be done in WeBWorK...might have to send all the emails to a certain account and somehow filter and redirect them to the appropriate instructor.

Any better ideas?

Thanks,
Debbie

### Re: Can "Email instructor" be directed to different emails depending on the student's section?

This is a good question. To my knowledge the answer is no.

Our initial solution was to have a separate course for each
discussion section.

That was cumbersome since we have 4 discussion sections per
discussion leader. So now we have a separate course for

This is still awkward because homework is assigned for the class
as a whole, but it seems like the right level of compromise for
our setup.

-Hal

### Re: Can "Email instructor" be directed to different emails depending on the student's section?

by Gavin LaRose -
Hi Debbie & Hal,

I think this is explicitly possible by setting the $feedback_by_section variable in global.conf (or, for an individual course, in the course.conf file). Setting that to a true value should result in only the instructors with the same section number as the student submitting the feedback request receiving the feedback e-mail. Gavin In reply to Gavin LaRose ### Re: Can "Email instructor" be directed to different emails depending on the student's section? by Hal Sadofsky - Thanks Gavin - I didn't realize that. We'll try it. In reply to Hal Sadofsky ### Re: Can "Email instructor" be directed to different emails depending on the student's section? by Michael Schroeder - Debbie, We have one course with 24 sections, and we found a way to distribute the emails. We put the following flag in the course.conf file: $feedback_by_section = 1;


Then if a student submits an email, it will go to all those TA or higher with the student's section in their section name. For example, if I have my section as "001,002,003" and a student from section "002" sends an email, I will receive it, but I will not from a student in section "004".

If you have someone wanting to receive all emails, setting their section to ".*" did the trick for us.

Hope this helps!

Mike Schroeder

### Re: Can "Email instructor" be directed to different emails depending on the student's section?

by Debbie Yuster -
Thanks everyone! This is an easy way to do exactly what I wanted.

Best,
Debbie

### Re: Can "Email instructor" be directed to different emails depending on the student's section?

by Zach Teitler -

Does this still work in 2021-2022?

by Glenn Rice -