Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
formmail cgi Select from multiple recipients Use select input and %recipient_alias to choose message recipient MMEric msg:441104 5:19 pm on Feb 1, 2006 (gmt 0) I need help getting my formmail cgi script to send to the right recipient based on a user selection from a list. Does anyone have experience with this. I have tried it in the fashion below, but it is only sending to the first email address in my %recipient_alias hash list. @allow_mail_to and @recipients where both left empty.
(in web form)
<select id="recipient" name="recipient" tabindex="1"> <option>Select recipient</option> <option value="Feedback">Website Feedback</option> <option value="Initiative">QEI Questions</option> <option value="Training">QEI Training</option> <option value="Other">Other</option> <option value="Accountability">QEA Questions</option> <option value="Support">Website Support</option> </select>
%recipient_alias = ( 'Feedback' => 'firstname.lastname@example.org', 'Initiative' => 'email@example.com', 'Training' => 'firstname.lastname@example.org', 'Other' => 'email@example.com', 'Accountability' => 'firstname.lastname@example.org', 'Support' => 'email@example.com', );
MMEric msg:441105 8:21 pm on Feb 3, 2006 (gmt 0)
This is working now. No need to reply.