$form_block = "
"; $send = "no"; } if ($sender_company == "") { $email_err = "Please write the name of your company! "; $send = "no"; } if ($sender_email == "") { $email_err = "Please write your e-mail! "; $send = "no"; } if ($message == "") { $message_err = "Please write your message! "; $send = "no"; } if ($send != "no") { // this is the info that comes on the email when it's ok to send! $msg = "E-MAIL SENT FROM http://www.yoursite.net/contact/\n"; $msg .= "Sender's Name: $sender_name\n"; $msg .= "Sender's E-Mail: $sender_email\n"; $msg .= "Sender's Company: $sender_company\n"; $msg .= "Message: $message\n\n"; $to = "email@yoursite.com"; $subject = "Information"; $mailheaders = "From: Information\n \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); echo "
|