". "Name of contact person: ".$_POST['contact_name']."
". "Phone: ".$_POST['phone']."
". "Email: ".$_POST['email']."
". "Appeal: ".$_POST['text']."
"; $str_theme = 'Request form'; //Отправка извещения на почту администратора require_once('phpmailer/class.phpmailer.php'); $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 0; // 2 to enable SMTP debug information $Mail->SMTPAuth = TRUE; // enable SMTP authentication $Mail->SMTPSecure = "tls"; //Secure conection $Mail->Port = 587; // set the SMTP port $Mail->Priority = 3; // Highest priority - Email priority (1 = High, 3 = Normal, 5 = low) $Mail->CharSet = 'UTF-8'; $Mail->Encoding = '8bit'; $Mail->Subject = $str_theme; $Mail->ContentType = "text/html; charset=utf-8\r\n"; $Mail->From = 'syava@koritsa.com.ua'; $Mail->Username = 'syava@koritsa.com.ua'; // SMTP account username $Mail->Password = 'sdfET#%GEtr2'; // SMTP account password $Mail->FromName = 'Services'; $Mail->WordWrap = 900; // RFC 2822 Compliant for Max 998 characters per line $Mail->AddAddress('Sergey.pazynych@gmail.com'); if(isset($_FILES['attach'])){ $Mail->AddAttachment($_FILES['attach']['tmp_name'], $_FILES['attach']['name']); } $Mail->isHTML( TRUE ); $Mail->Body = stripslashes($str_text); $Mail->AltBody = stripslashes(strip_tags($str_text)); $Mail->Send(); $Mail->SmtpClose(); if ( $Mail->IsError() ) { echo "ERROR

"; } } }?> COMPASS TRANSIT GROUP CTG Ltd - Request form

Request form







Your message was successfully sent. We'll write to you soon.

/>
id="contact_name" />
id="phone" />
id="email" />
id="attach" />