Well, my client want to offer people a choice of more than one recipients on the list. In other word, if someone were to send an email to 3 out of 19 people on the list, then all 3 people should receive the email and not make the people do it one at a time three times.
Unfortunately, I cannot make that option work, because the end result is ZERO emails are sent out!
I've upgraded to 2.3.5 latest 1.0 version tonight.
So, is this possible at all?
Form HTML code:
<?php
global $mainframe;
$mainframe->setPageTitle("Contact a Teacher"«»);
?>
<input type="hidden" name="subject" value="Contact a Teacher Form" />
<p>Select the teacher you wish to contact:
</p>
<label>
<select name="recipients" size="19" multiple="multiple" id="teacher">
<option value="em1">John Smith</option>
<option value="em2">Lisa Smith</option>
<option value="em3">Rochelle Smith</option>
<option value="em4">Megan Smith</option>
<option value="em5">Eve Smith</option>
<option value="em6">Ken Smith</option>
<option value="em7">Arlene Jones</option>
<option value="em8">Harry Jones</option>
<option value="em9">Zack Smith</option>
<option value="em10">Jerry Lai</option>
<option value="em11">Eleanor Jones</option>
<option value="em12">Jacqueline Smith</option>
<option value="em13">George Smith</option>
<option value="em14">Mary Smith</option>
<option value="em15">Janie Jones</option>
<option value="em16">Dave Smith</option>
<option value="em17">Susan Smith</option>
<option value="em18">Barbara Smith</option>
<option value="em19">Lauren Smith</option>
<option value="em20">Webmaster</option>
</select>
</label>
</p>
<p>Hold down "Ctrl" key and use your left-hand mouse button to select more than
one teacher
</p>
<p>Enter your name:
<input name="name" type="text" size="25" />
<br />
Email address:
<input name="email" type="text" id="email" size="25" />
<br />
Telephone Number:
<input name="telephone" type="text" id="telephone" size="25" />
<br />
Message:
<label>
<textarea name="message" id="message"></textarea>
</label>
</p>
<p>
<input name="This email was filled out at the website" type="submit" class="button" value="Submit" />
</p>
On Submit code - before sending email:
<?php
$emails = array('em1' => 'Lisa@deafbiz.com', 'em2' => 'arlene@deafbiz.com', 'em3' => 'barbara@deafbiz.com', 'em4' => 'dave@deafbiz.com',
'em5' => 'einav@deafbiz.com', 'em6' => 'eleanor@deafbiz.com', 'em7' => 'hope@deafbiz.com', 'em8' => 'jacqueline@deafbiz.com',
'em9' => 'jaklyn@deafbiz.com', 'em10' => 'janie@deafbiz.com', 'em11' => 'jerry@deafbiz.com', 'em12' => 'ken@deafbiz.com', 'em13' => 'lauren@deafbiz.com', 'em14' => 'lowy@deafbiz.com', 'em15' => 'megan@deafbiz.com', 'em16' => 'miriam@deafbiz.com', 'em17' => 'rochelle@deafbiz.com', 'em18' => 'susan@deafbiz.com', 'em19' => 'zippy@deafbiz.com', 'em20' => 'webmaster@deafbiz.com');
$rows[0]->extraemail = $emails[$_POST['recipients']];
?>
Thanks for the assistance!