<select name="email">
<option value="myemail@domain.com">My Email or Name</option>
</select>
In PHP, just grab the $_POST['email'] variable nad use it as the address.
If you'd like to see a more intricate example, head over to:
Contact Page
Take a look at the source. You'll see my select box for the recipient. I'll post the PHP code here for you to look at:
require_once('Mail.php');
require_once('PEAR.php');
$recipients = array(
'president' => 'president@winfieldvfd.org',
'vicepres' => 'vicepres@winfieldvfd.org',
'emscapt' => 'emscaptain@winfieldvfd.org',
'firechief' => 'chief@winfieldvfd.org',
'webmaster' => 'webmaster@winfieldvfd.org'
);
foreach($recipients as $rcpt => $adrs)
{
if($rcpt == $_REQUEST['recip'])
{
$Recip = $adrs;
}
}
// Some other stuff here for my emails
$recips = $Recip.', ';
$recips .= $Email;
$headers['From'] = $fromcc;
$headers['To'] = $Recip;
$headers['Cc'] = $fromcc;
$headers['Subject'] = $Subject;
$headers['Date'] = date("r");
// Then I send it out
So I don't allow any visitors to see the email address, but I do get it from my PHP script. A little more secure, but a lot more intricate.
~Brett