MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.188.219.131
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/adowoods.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/adowoods.com/mail.php
<?php
$date11=date('Y-m-d');
$date1=date('j M, Y', strtotime($date11));
$subject = "Welcome to adowoods";
$subject1 = "Inquiry Form";
if(isset($_POST['submit']))
{
    $name=$_POST['name'];
    $phone=$_POST['phone'];
    $email=$_POST['email'];
    $address=$_POST['address'];
    $state=$_POST['state'];
    $Zip=$_POST['Zip'];
    $Country=$_POST['Country'];
    $comment=$_POST['comment'];
    
$htmlContent = '<table cellspacing="0" style="width: 360px;
height: 280px;border: 4px solid #efeeee;text-align:left;" class="table-male">
        <tr style=" text-align:  center;">
       <a href="http://adowoods.com/"><img src="http://adowoods.com/images/ado-wood-logo.png" alt="" height="70" width="200"></a>
        </tr>

       <tr style="text-align:  left;background: red;
    color: #ffffff;">
          <p style="font-size: 18px; margin: 0;padding: 8px;">'.$subject1.'</p><td></td>
            </tr>

 <tr>
                <th style="padding: 10px;">Name: </th><td style="padding: 10px;">'.$name.'</td>
            </tr>
            
           <tr>
                <th style="padding: 10px;">Email: </th><td style="padding: 10px;">'.$email.'</td>
            </tr>
<tr>
                <th style="padding: 10px;">Contact No: </th><td style="padding: 10px;">'.$phone.'</td>
            </tr>

 <tr>
                <th style="padding: 10px;">Address: </th><td style="padding: 10px;">'.$address.'</td>
            </tr>

 <tr>
                <th style="padding: 10px;">State: </th><td style="padding: 10px;">'.$state.'</td>
            </tr>
            
 <tr>
                <th style="padding: 10px;">Country: </th><td style="padding: 10px;">'.$Country.'</td>
            </tr>
            
 <tr>
                <th style="padding: 10px;">Zip: </th><td style="padding: 10px;">'.$Zip.'</td>
            </tr>
 <tr>
                <th style="padding: 10px;">Comment: </th><td style="padding: 10px;">'.$comment.'</td>
            </tr>
            
 <tr>
                <th style="padding: 10px;">Inquiry Date: </th><td style="padding: 10px;">'.$date1.'</td>
            </tr>
          
        </table>';

   



$header = 'From: info@adowoods.com' . "\r\n"; 

$header.= "Content-Type: text/html; charset=utf-8\r\n"; 

$to='adoavs@gmail.com';

if(mail($to,$subject1,$htmlContent,$header,'-fnoreply@yourmailer.com')){}
else {}
echo "<script>alert('Thankyou for the contacting. our team contact shortly.');location.href='index.php';</script>";
}

if(isset($_POST['inquiry']))
{
   $name=$_POST['name'];
    $phone=$_POST['phone'];
    $email=$_POST['email'];
    $state=$_POST['state'];
    $message=$_POST['message'];
    
$subject = "Inquiry Form";
$htmlContent = '<table cellspacing="0" style="width: 360px;
height: 280px;border: 4px solid #efeeee;text-align:left;" class="table-male">
        <tr style=" text-align:  center;">
       <a href="http://adowoods.com/"><img src="http://adowoods.com/images/ado-wood-logo.png" alt="" height="70" width="200"></a>
        </tr>

       <tr style="text-align:  left;background: red;
    color: #ffffff;">
          <p style="font-size: 18px; margin: 0;padding: 8px;">'.$subject.'</p><td></td>
            </tr>

<tr>
                <th style="padding: 10px;">Name: </th><td style="padding: 10px;">'.$name.'</td>
            </tr>
            
           <tr>
                <th style="padding: 10px;">Email: </th><td style="padding: 10px;">'.$email.'</td>
            </tr>
<tr>
                <th style="padding: 10px;">Contact No: </th><td style="padding: 10px;">'.$phone.'</td>
            </tr>
            
            <tr>
                <th style="padding: 10px;">State: </th><td style="padding: 10px;">'.$state.'</td>
            </tr>

 <tr>
                <th style="padding: 10px;">Message: </th><td style="padding: 10px;">'.$message.'</td>
            </tr>
            
           
          
        </table>';

   



$header = 'From: info@adowoods.com' . "\r\n"; 

$header.= "Content-Type: text/html; charset=utf-8\r\n"; 

//$to='adoavs@gmail.com';
$to='inquiry@adowoods.com';

if(mail($to,$subject,$htmlContent,$header,'-fnoreply@yourmailer.com')){}
else {}
echo "<script>alert('Thankyou for the subscribe. ');location.href='index.php';</script>";
}
?>

MMCT - 2023