include('validationform.class.php');
$vf = new ValidateForm("contacts_form.php");
$showform = false;
if ( $vf->checkForm() ) {
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= 'From: no-reply@arabulgaria.org' . "\r\n" .
'Reply-To: no-reply@arabulgaria.org' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
//rcehrceh@gmail.com
$mail_sent = mail('ara@arabulgaria.org,arabulgaria@abv.bg','Request from Forum 2010 website', 'Company: ' . $vf->values['cf_company'] . "\r\n
No of participants: " . $vf->values['cf_no_participants'] . "\r\n
Address: " . $vf->values['cf_adress'] . "\r\n
Phone: " . $vf->values['cf_phone'] . "\r\n
E-mail: " . $vf->values['cf_mail'] . "\r\n
Participant1: " . $vf->values['cf_participant1'] . "\r\n
Participant2: " . $vf->values['cf_participant2'] . "\r\n
Participant3: " . $vf->values['cf_participant3'] . "\r\n
Participant4: " . $vf->values['cf_participant4'] . "\r\n
Participant5: " . $vf->values['cf_participant5'] . "\r\n
Company Invoice: " . $vf->values['cf_company_invoice'] . "\r\n
Address: " . $vf->values['cf_adress_invoice'] . "\r\n
EIK: " . $vf->values['cf_eik'] . "\r\n
VAT No: " . $vf->values['cf_no_dds'] , $headers);
if ( $mail_sent ) {
header('Location: ' . $_SERVER['REQUEST_URI'] );
exit();
}
} else {
if (count($_POST)) $showform = true;
}
?>