<?php
require "./PHPMailer_5.2.0/class.phpmailer.php";


$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$requirement = $_POST['requirement'];
$sqft = $_POST['sqft'];
$message = $_POST['message'];



    $adminoutput = '<!DOCTYPE html>
                                    <html>
                                    <head>
                                        <title>Indopride</title>
                                        <meta charset="UTF-8">
                                        <meta name="viewport" content="width=device-width, initial-scale=1.0">
                                        <style>
                                            .block{
                                                background-color: #0E0F85;
                                                display: inline-block;
                                                color: #fff;
                                                border-radius: 20px;
                                                padding: 20px;
                                                font-size: 18px;
                                            }
                                        </style>
                                    </head>
                                    <body>
                                        <div class="block">
                                        
                                            <p>Name : <b>' . $name . '</b></p>
                                            <p>Email : <b>' . $email . '</b></p>
                                            <p>Phone : <b>' . $phone . '</b></p>
											<p>Requirement : <b>' . $requirement . '</b></p>
                                            <p>Sq.Ft for work : <b>' . $sqft . '</b></p>
                                            <p>Message : <b>' . $message . '</b></p>
                                        </div>
                                    </body>
                                </html>';
  $toaddress = "info@indopridesolutions.com";
        $mail = new PHPMailer();
        $mail->isSendmail();
        $mail->Subject = 'Indopride | Enquiry from '.$name.' Contact us Page';
        $mail->setFrom('no-reply@indopridesolutions.com', 'Indopride');
        $mail->addAddress($toaddress);
        $mail->AddCC('lenus@bangaloreadsolutions.com');
        
        $mail->IsHTML(true);
        $mail->Body = preg_replace('/\[\]/', '', $adminoutput);  
if ($mail->send()) {
        echo 'Thank you for Submiting';
        exit(0);
    } else {
        echo 'Sorry.. Please try again later...';
        //echo $mail->ErrorInfo;
        exit(0);
    }