i used this code for my site, it worked fine but emails went to junkmail before i told them not to, lol
<?phpif (isset($_REQUEST['email']))//if "email" is filled out, send email { //send email $email = $_REQUEST['email']; $from = $_REQUEST['remail']; $subject = $_REQUEST['subject']; $message = $_REQUEST['message']; $headers = "From: $from"; mail( "$email", "Subject: $subject", "$message", "$headers"); echo "Thank you for contacting us, we will reply as soon as possible."; }else//if "email" is not filled out, display a error { echo "Sorry, but the message could not be sent to $email."; }?>
however this requires abit more of a complex form, it needs a email box, which has the email to send it to typed in, i made mine a drop down list so they couldnt send them to everyone they wished -.-, a from box which has the i'd remail, and replaces part of the email when sent, a subject box, and a message box, also the obvious submit button, if u make the form i made it will easily work for u 2.