IsSMTP(); // telling the class to use SMTP $mail->Host = "mail.hydelindia.com"; // SMTP server $mail->SMTPAuth = true; $mail->Username = "enquirymail@hydelindia.com"; $mail->Password = "allied789456@"; ///$body="Name: " . $cname . "\nEmail: " . $cemail . "\nComments: " . $comments; $mail->From = $email; // Your Full Email ID on your Domain $mail->FromName = $fname; // Your name or Domain $mail->AddAddress($to); $mail->AddCC($cc); $mail->Subject = $sub; $mail->Body = $body; $mail->Header = $headers; $mail->WordWrap = 1550; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo header('Location: thank-you.html'); } } } // Function to validate against any email injection attempts function IsInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } ?> Industrial Pipe Fitting Suppliers | Hydraulic Valve Suppliers | Hose Pipe Exporters | Paver Pack Suppliers India | India
Home » Enquiry

Enquiry