Server IP : 192.64.118.117 / Your IP : 18.118.99.234 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/wefixcredit.org/ |
Upload File : |
<?php // Section 1. if( $_POST['donotput'] == '' ){ $to = 'neil@acreditcompany.com'; $subject = 'Credit Repair Consultation:' . $_POST['name']; $from = $_POST['email']; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Create email headers $headers .= 'From: '.$from."\r\n". 'Reply-To: '.$from."\r\n" . 'X-Mailer: PHP/' . phpversion(); // Compose a simple HTML email message $message = '<html><body>'; $message .= " <p style='font-size:18px;font-weight:600;'>Name: " . $_POST['name'] . "</p><br/> <p style='font-size:18px;font-weight:600;'>Email Address: " . $_POST['email'] . "</p><br/> <p style='font-size:18px;font-weight:600;'>Phone Number: " . $_POST['phone'] . "</p>"; $message .= '</body></html>'; // Sending email if(mail($to, $subject, $message, $headers)){ header('Location: thank-you.html'); } else{ echo 'Unable to send. Please try again.'; } }else{ // Section 4. echo 'Spam detected!'; } ?>