a VERY simple example (with no proper input validation)
<?php
$subjects_emails = array(
'general information' => 'info@mricketts.com',
'product' => 'products@mricketts.com',
'sales' => 'sales@mricketts.com'
);
?>
<form action="" method="post">
name: <input type="text" name="name"><br>
email: <input type="text" name="email"><br>
subject: <select name="subject">
<?php
foreach ($subjects_emails as $key => $value)
{
echo '<option value="' . $key . '">' . $key . '</option>';
}
?>
</select>
<br>
body: <input type="text" name="body"><br>
<input type="submit" name="submit" value="submit">
</form>
<?php
if (isset($_POST['submit']))
{
$mail = mail($subjects_emails[$_POST['subject']], $_POST['subject'], $_POST['body'], 'From: ' . $_POST['name'] . ' <' . $_POST['email'] . '>');
if ($mail) {echo 'mail OK';} else {echo 'mail FAIL';}
}
?>