I have a contact form and I want to have multiple recipients but I keep seeing scripts like this, which don't secure the email address of the recipients.
My current script is like this in the contact form file. However, the email isn;t being sent to the selected recipient. How can I fix that?
Quote:
<tr>
<td><p>Recipient</p></td>
<td><select name="Recipient" size="1" id="Recipient">
<option value="test1">John Doe 1</option>
<option value="test2">John Doe 2</option>
<option value="test3">John Doe 3</option>
</select>
</td>
</tr>
|
And like this in the processing script.
Quote:
$emailTo = 'test1'=> 'test1@live.com','test2'=> 'test2@hotmail.com','test3'=> 'test3@yahoo.com';
$rows[0]->extraemail = $emails[$_POST['Recipient']];
|