array( 'text' => 'Name', 'val' => $_POST['name'] ), 1 => array( 'text' => 'Email address', 'val' => $_POST['email'] ), 2 => array( 'text' => 'Message', 'val' => $_POST['message'] ), 3 => array( 'text' => 'Checkboxes', 'val' => implode($_POST['checkboxes'], ", ") ), 4 => array( 'text' => 'Radios', 'val' => $_POST['radios'] ) ); $message = ""; foreach($fields as $field) { $message .= $field['text'].": " . htmlspecialchars($field['val'], ENT_QUOTES) . "
\n"; } $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP $mail->SMTPDebug = 0; // Debug Mode // Step 4 - If you don't receive the email, try to configure the parameters below: //$mail->Host = 'mail.yourserver.com'; // Specify main and backup server //$mail->SMTPAuth = true; // Enable SMTP authentication //$mail->Username = 'username'; // SMTP username //$mail->Password = 'secret'; // SMTP password //$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted $mail->From = $email; $mail->FromName = $_POST['name']; $mail->AddAddress($to); $mail->AddReplyTo($email, $name); $mail->IsHTML(true); $mail->CharSet = 'UTF-8'; $mail->Subject = $subject; $mail->Body = $message; // Step 5 - If you don't want to attach any files, remove that code below if (isset($_FILES['attachment']) && $_FILES['attachment']['error'] == UPLOAD_ERR_OK) { $mail->AddAttachment($_FILES['attachment']['tmp_name'], $_FILES['attachment']['name']); } if($mail->Send()) { $arrResult = array('response'=> 'success'); } else { $arrResult = array('response'=> 'error', 'error'=> $mail->ErrorInfo); } } else { $arrResult['response'] = 'captchaError'; } } ?> SRS DIECASTING
Success! Your message has been sent to us.
Error! There was an error sending your message. ()
Error! Verificantion failed.

Contact Us

6, 'max_length' => 6, 'min_font_size' => 22, 'max_font_size' => 22, 'angle_max' => 3 )); $_SESSION['captchaCode'] = $_SESSION['captcha']['code']; echo 'CAPTCHA code'; ?>

Get in Touch

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut feugiat urna arcu, vel molestie nunc commodo non. Nullam vestibulum odio vitae fermentum rutrum.

Mauris lobortis nulla ut aliquet interdum. Donec commodo ac elit sed placerat. Mauris rhoncus est ac sodales gravida. In eros felis, elementum aliquam nisi vel, pellentesque faucibus nulla.


The Office

  • Address: 1234 Street Name, City Name, United States
  • Phone: (123) 456-789
  • Email: mail@example.com

Business Hours

  • Monday - Friday 9am to 5pm
  • Saturday - 9am to 2pm
  • Sunday - Closed