Support Request Form
Access customer service for technical support, quotes and more
Thank youYour support request was sent to us. We'll contact you as soon as possible. |
SMTPDebug = 2; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'mail.pioneerps.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'customer@pioneerps.com'; // SMTP username
$mail->Password = 'PPs123';
$mail->SMTPSecure = false; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 25; // TCP port to connect to
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
$mail->CharSet="UTF-8";
//Recipients
$replyto = preg_replace("/(\r\n|\r|\n)/s",'', trim($_POST['txtEmail']));
$mail->setFrom('customer@pioneerps.com',$replyto);
$mail->AddReplyTo($replyto,$replyto);
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'pioneerps.com - support request';
$body = 'Name: '.$_POST['txtName'].'
';
$body = $body .'Company: '.$_POST['txtCompany'].'
';
$body = $body .'Email: '.$_POST['txtEmail'].'
';
$body = $body .'Problem is about: ';
$issales = false;
$iscustomerservices = false;
$issupport = false;
if(!empty($_POST['check_list'])) {
foreach($_POST['check_list'] as $check) {
$body = $body .$check.', ';
//Quote Request, Memory Gauges, SRO Gauges, Permanent Gauges, Software, Other,
if (strpos($check, 'Quote Request') !== false) {
$issales = true;
}
if (strpos($check, 'Memory Gauges') !== false) {
$iscustomerservices = true;
}
if (strpos($check, 'SRO Gauges') !== false) {
$iscustomerservices = true;
}
if (strpos($check, 'Permanent Gauges') !== false) {
$iscustomerservices = true;
}
if (strpos($check, 'Software') !== false) {
$issupport = true;
}
if (strpos($check, 'Other') !== false) {
$iscustomerservices = true;
}
}
}
if ($issales == true)
{
$mail->addAddress('sales@pioneerps.com');
}
if ($iscustomerservices == true)
{
$mail->addAddress('customerservices@pioneerps.com');
}
if ($issupport == true)
{
$mail->addAddress('support@pioneerps.com');
}
if ($issales !== true and $iscustomerservices!== true and $issupport !== true)
{
$mail->addAddress('customerservices@pioneerps.com');
}
$body = $body .'
';
$body = $body .'Description: '.$_POST['txtBody'] .'
';
$mail->Body = $body;
$mail->send();
} catch (Exception $e) {
echo 'Mailer Error: ' . $mail->ErrorInfo;
}
}
?>