On Sun, Oct 26, 2008 at 8:40 PM, <cbreuni@...> wrote:
> Hi there,
> I have a form used by students to evaluate each other and I want the form to go to the person being evaluated and myself along with a confirmation to the person doing the evaluating. I have listed all 20 student addresses under @allow_mail_to and I think I should put the variable names representing the author_email and evaluator_ email and instructor_email in the @recipients box. Is there a way to enter it as a variable name since all 20 students are evaluating 2 other students and there is no way to code specific names? Would it look something like this qw(%author_email%,%evaluator_email%,%instructor_email%)?
No, that's not the way to configure the script for your situation. You
can't use variables like that in NMS FormMail. You'll need to
configure the script as follows:
1. Use the %recipient_alias hash in the USER CONFIGURATION SECTION of
the FormMail.pl file to set up your recipient groups. You'll need 20
groups, each consisting of your name and a student name. Something
like this, naming each group after the unique student:
%recipient_alias = (
'alfonso' => 'alfonso@...',
'beatrice' => 'beatrice@...',
'carlos' => 'carlos@...',
'yolanda' => 'yolanda@...',
2. Leave the @allow_mail_to and @recipients arrays empty, as they are
3. On your form, make the recipient field a visible select box, with
the recipient_alias aliases/groups as the values to be selected.
4. Configure the confirmation text (and associated) settings at the
end of the USER CONFIGURATION SECTION to fit your needs.
That should do it. I'm sorry that I don't have the time to be more
detailed, but hopefully you get the idea.
The only two drawbacks that I can see are that it won't be anonymous
and you'll have to configure this for every different class, because
the names cannot be submitted via a form variable (due to spamming
Hope this helps.
P.S. You could also check out TFMail, the more advanced
form-to-mail program provided by the NMS Project, but I don't think
it'll get you any closer than the approach detailed above.