
<?php

session_start();

  include ('../../admin/db/saucerer.php');

  if(isset($_POST['newsletter'])){ 

            if($_POST['username'] != ''){

                $_SESSION['username'] = $_POST['username'];

            }

            else {

  $sql = "SELECT * FROM subscribers WHERE email = '".$_POST['email']."'";
            $query = $conn->query($sql);
            if($query->num_rows > 0){

                echo "<span style='color:white;font-size: 14px;'>Email already registered!</span>";

                //return the inputted fields
                $_SESSION['email'] = $_POST['email'];

            }

            else {

    $email = addslashes($_POST['email']);
    mysqli_query($conn,"insert into `subscribers` (`email`) values ('$email')") or die(mysqli_error());

    if($conn){
  echo "<span style='color:white;font-size: 14px;'>
  Email registered succesfully.
  </span>";
}

else{
  echo "<span style='color:white;font-size: 14px;'>
  Sorry! Your email submission has failed.
  </span>";

     }

    }

  }

}

  
?>




<?php

$conn= mysqli_connect("localhost", "custbahd_customassistname", "Rwatangabo1son", "custbahd_cornerstone"); 

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

require_once __DIR__ . '/vendor/phpmailer/src/Exception.php';
require_once __DIR__ . '/vendor/phpmailer/src/PHPMailer.php';
require_once __DIR__ . '/vendor/phpmailer/src/SMTP.php';


//To Client

$mail = new PHPMailer(true);
$mail->SMTPDebug = 0;
$mail->isSMTP();
$mail->Host = 'premium146.web-hosting.com';
$mail->SMTPAuth = true;
$mail->Username = "info@cornerstoneassetmanagers.com";
$mail->Password = "Cornerstone@256";
$mail->SMTPSecure = "ssl";
$mail->Port = 465;


if(isset($_POST['newsletter'])){

  if($_POST['username'] != ''){

                $_SESSION['username'] = $_POST['username'];

            }
            

            else {

$email = $_POST['email'];
 

$mail->From = "info@cornerstoneassetmanagers.com";
$mail->FromName = "Cornerstone Asset Managers";

$mail->addAddress("$email");


$mail->isHTML(true);

$mail->Subject = "Newsletter Subscription";
$mail->Body = "



<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'>
<head>
    <!--[if gte mso 9]>
    <xml>
        <o:OfficeDocumentSettings>
        <o:AllowPNG/>
        <o:PixelsPerInch>96</o:PixelsPerInch>
        </o:OfficeDocumentSettings>
    </xml>
    <![endif]-->
    <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
    <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1' />
    <meta http-equiv='X-UA-Compatible' content='IE=edge' />
    <meta name='format-detection' content='date=no' />
    <meta name='format-detection' content='address=no' />
    <meta name='format-detection' content='telephone=no' />
    <meta name='x-apple-disable-message-reformatting' />
    <!--[if !mso]><!-->
    <link href='https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i|Raleway:400,400i,700,700i' rel='stylesheet' />
    <link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900' rel='stylesheet'>

    <title>Cornerstone Asset Managers</title>

    <style type='text/css' media='screen'>

@media (prefers-color-scheme: dark) {
  :root {
    p,h3,h4,h5 {color: #fff !important;}
  }
}
        body { padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:#F0F2F6; }

        @media only screen and (max-width: 640px) { 
            table[class='responsive_table'] {
                width: 100% ! important;
            }
            img[class='responsive_image'] {
                max-width: 200px ! important;
                height: auto ! important;
            }
            .responsive_table p {
                padding: 0 40px 20px ! important;
            }
            .email-responsive {
                width: 100% ! important;
            }
            .email-responsive img {
                text-align: left;
                width: 100% ! important;
            }
            .email-responsive h5 {
                width: 100% ! important;
                font-size: 18px ! important;
            }
            .email-responsive h4 {
                font-size: 18px ! important;
            }
            .email-responsive h3 {
                font-size: 18px ! important;
            }
            .column-top { float: left !important; width: 50% !important; }

            .fluid-img img {width: 100% !important; height: 200px !important;}

            .text-title {font-size: 12px !important; font-weight: 500 !important;}
            
        }

    </style>
</head>

<body>


    <table width='100%' border='0' cellspacing='0' cellpadding='0'>
        <tr>
            <td align='center' style='font-family: Roboto, sans-serif;'>
                <table width='600' border='0' cellspacing='0' cellpadding='0' bgcolor='#eceded' class='responsive_table' style='    -webkit-box-shadow: 0px 10px 20px 0px rgba(50, 50, 50, 0.52);-moz-box-shadow: 0px 10px 20px 0px rgba(50, 50, 50, 0.52);box-shadow: 0px 10px 20px 0px rgba(50, 50, 50, 0.52);'>
                    
                                <tr align='center'>
                                    <td height='68'>
                                        <img src='https://cornerstoneassetmanagers.com/assets/img/logo/logo-dark.png' class='responsive_image' style='background-size:cover;background-repeat:no-repeat;margin: 50px;' alt='' width='200px' alt='Cornerstone Logo'>
                                    </td>
                                </tr>
                   
                    <tr>
                        <td>
                            <table width='600' border='0' cellspacing='0' cellpadding='0' bgcolor='#101010' style='background:url(https://cornerstoneassetmanagers.com/assets/img/stock/core/4.png);background-size:cover;background-repeat:no-repeat;text-align: center;padding: 20px 0 30px 0;' class='email-responsive'>
                                <tr>
                                    <td align='center' style='padding-top:30px;'>
                                        <table width='300' border='0' cellspacing='0' cellpadding='0' class='responsive_table'>
                                            <tr>
                                                <td width='300' align='center'>
                                                    <p style='margin:0;color:#fff;font-size:14px;line-height:20px;padding-bottom:15px;font-weight: 500;'>Your email address <b><a style='color: #A87E2C;'>$email</a></b> has been succesfully registered to our newsletter subscriptions. Thank You! </p>
                                                </td>
                                            </tr>
                                <tr>
                                    <td align='center' style='padding-top:30px;color:#fff;text-transform: uppercase;'>
                                        
                                        <a href='https://cornerstoneassetmanagers.com' style='display: inline-block;background: #eceded;text-transform: uppercase;text-decoration: none;color: #000000;padding: 13px 15px 12px;font-size: 16px;font-weight: 600;text-align: center;border-radius: 8px;margin-bottom: 50px;'>Back to website</a>
                                    </td>
                                </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            

          <!-- Two Columns -->
          <layout label='Two Columns'>
                  <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#eceded'>
                          <tr>
                                <td class='p30-15' style='padding: 50px 30px;'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                       <tr>
          <td class='section-title' style='color:#000000; font-size:14px; line-height:20px; text-align:center; padding-bottom:40px; text-transform:uppercase;'><multiline>P O P U L A R&nbsp;  S E R V I C E S</multiline></td>
          </tr>
                       <tr>
          <td class='section-inner'>
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                <tr>
                      <th class='column-top' width='260' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; vertical-align:top;'>
                  <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                    <td class='fluid-img pb20' style='font-size:0pt; line-height:0pt; text-align:left; padding-bottom:20px;'><img src='https://cornerstoneassetmanagers.com/assets/img/stock/services/7.png' width='260' height='410' editable='true' border='0' alt='Wealth Management' style='border-radius: 4px;' /></td>
          </tr>
                      <tr>
                    <td>
        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
        <tr>
            <td class='text-title pb10' style='color:#000000; font-size:22px; line-height:32px; text-align:left; padding-bottom:10px;'><multiline>Wealth Management</multiline></td>
            </tr>
        <tr>
            <td class='text2 pb15' style='color:#585858; font-size:12px; line-height:20px; text-align:left; padding-bottom:15px;'><multiline>In a market that requires expert stewardship of wealth, Cornerstone provides Wealth Management services tailored to institutional and private clients.</multiline></td>
            </tr>
                <!-- Button -->
        <tr>
            <td align='left'>
          <table width='140' border='0' cellspacing='0' cellpadding='0'>
                                                    <tr>
              <td class='text-button black-button' style='font-size:14px; line-height:18px; text-align:center; text-transform:uppercase; padding:10px; background:transparent !important; border:1px solid #000000; color:#000000;border-radius: 4px;'><multiline><a href='https://cornerstoneassetmanagers.com/services/wealth-management' target='_blank' class='link-black' style='color:#000001; text-decoration:none;'><span class='link-black' style='color:#000001; text-decoration:none;'>Indulge More</span></a></multiline></td>
            </tr>
            </table>
          </td>
            </tr>
                <!-- END Button -->
          </table>
          </td>
          </tr>
          </table>
          </th>
                      <th class='column-empty' width='30' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'></th>
                      <th class='column-top' width='260' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; vertical-align:top;'>
                  <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                    <td class='fluid-img pb20' style='font-size:0pt; line-height:0pt; text-align:left; padding-bottom:20px;'><img src='https://cornerstoneassetmanagers.com/assets/img/stock/services/5.png' width='260' height='410' editable='true' border='0' alt='Unit Trust Funds' style='border-radius: 4px;' /></td>
          </tr>
                      <tr>
                    <td>
        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
        <tr>
              <td class='text-title pb10' style='color:#000000; font-size:22px; line-height:32px; text-align:left; padding-bottom:10px;'><multiline>Unit Trust Funds</multiline></td>
            </tr>
        <tr>
              <td class='text2 pb15' style='color:#585858; font-size:12px; line-height:20px; text-align:left; padding-bottom:15px;'><multiline>Cornerstone offers both local and international options i.e Uganda Shilling Income Fund & USD Income Fund as Uganda’s financial markets grow.</multiline></td>
            </tr>
                <!-- Button -->
        <tr>
            <td align='left'>
          <table width='140' border='0' cellspacing='0' cellpadding='0'>
        <tr>
            <td class='text-button black-button' style='font-size:14px; line-height:18px; text-align:center; text-transform:uppercase; padding:10px; background:transparent !important; border:1px solid #000000; color:#000000;border-radius: 4px;'><multiline><a href='https://cornerstoneassetmanagers.com/services/income-unit-trust-funds' target='_blank' class='link-black' style='color:#000001; text-decoration:none;'><span class='link-black' style='color:#000001; text-decoration:none;'>Learn More</span></a></multiline></td>
          </tr>
            </table>
          </td>
            </tr>
                <!-- END Button -->
          </table>
          </td>
          </tr>
          </table>
          </th>
          </tr>
          </table>
          </td>
          </tr>
      </table>
          </td>
          </tr>
          </table>
          </layout>
          <!-- END Two Columns -->
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width='600' border='0' cellspacing='0' cellpadding='0' style='background: #fff;' class='responsive_table'>
                                <tr>
                                    <td align='center' style='padding-top:68px;'>
                                        <table width='545' border='0' cellspacing='0' cellpadding='0' class='responsive_table'>
                                            <tr>
                                                <td align='center' style='color:#000;'>
                                                    <span style='font-size:13px;padding: 4px 0;line-height:20px;display:block;font-weight: 500;'>Support: <a href='mailto:info@cornerstoneassetmanagers.com' style='color:#000;'>info@cornerstoneassetmanagers.com</a> </span>
                                                    <span style='font-size:14px;padding: 4px 0;line-height:20px;display:block;font-weight: 500;padding-bottom:60px;'>Plot 16A, Ntinda II Road | Naguru, Kampala (Uganda) </span>
                                                    <span style='display:block;padding-bottom:35px;'>
                                                     <a href='https://www.facebook.com/profile.php?id=61569347717892' target='_blank' title='Facebook' style='text-decoration:none;margin:0 5px;'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/1.png' width='40' height='40' editable='true' border='0' alt='Facebook' /></a>
                                                       <a href='https://www.instagram.com/cornerstone_assetmanagers/profilecard/?igsh=MW40eXh1cDZ0NnFwZQ==' target='_blank' title='Instagram' style='text-decoration:none;margin:0 5px;'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/2.png' width='40' height='40' editable='true' border='0' alt='Instagram' /></a>
                                                       <a href='https://x.com/csassetmanagers?s=21' target='_blank' title='Twitter' style='text-decoration:none;margin:0 5px;'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/3.png' width='40' height='40' editable='true' border='0' alt='Twitter' /></a>
                                                       <a href='https://www.linkedin.com/company/cornerstone-asset-managers/' target='_blank' title='LinkedIn' style='text-decoration:none;margin:0 5px;'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/6.png' width='40' height='40' editable='true' border='0' alt='LinkedIn' /></a>
                                                       <a href='https://wa.me/256785196012?text=https://cornerstoneassetmanagers.com *Cornerstone Support* %0D%0A  %0D%0A Hello, how may I help you today? %0D%0A  %0D%0A' target='_blank' title='Whatsapp' style='text-decoration:none;margin:0 5px;'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/5.png' width='40' height='40' editable='true' border='0' alt='Whatsapp' /></a>
                                                       <a href='https://maps.app.goo.gl/XdSqLfHHDr5MG7Vf7' target='_blank' title='Location' style='text-decoration:none;margin:0 5px;'><img src='https://cornerstoneassetmanagers.com/assets/img/socials/icons/9.png' width='40' height='40' editable='true' border='0' alt='Location' /></a>
                                                    </span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style='padding:10px 0 30px 0;'>
                            <table width='600' border='0' cellspacing='0' cellpadding='0' class='responsive_table'>
                                <tr>
                                    <td align='center' style='color:#000;'>
                                        <span style='display:block;font-size: 12px;line-height: 24px;'>Cornerstone Asset Managers © 2024, All Rights Reserved.</span>
                                        
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>


</body>

</html>



";

try {
    $mail->send();
    echo "";
} catch (Exception $e) {
    echo "Mailer Error: " . $mail->ErrorInfo;
}

}

}


//To Admin

$mail = new PHPMailer(true);
$mail->SMTPDebug = 0;
$mail->isSMTP();
$mail->Host = 'premium146.web-hosting.com';
$mail->SMTPAuth = true;
$mail->Username = "info@cornerstoneassetmanagers.com";
$mail->Password = "Cornerstone@256";
$mail->SMTPSecure = "ssl";
$mail->Port = 465;


if(isset($_POST['newsletter'])){

  if($_POST['username'] != ''){

                $_SESSION['username'] = $_POST['username'];

            }
            

            else {
 

$mail->From = "info@cornerstoneassetmanagers.com";
$mail->FromName = "Cornerstone Asset Managers";

$mail->addAddress("info@cornerstoneassetmanagers.com");


$mail->isHTML(true);

$mail->Subject = "Newsletter Subscriber";
$mail->Body = "


<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'>
<head>
  <!--[if gte mso 9]>
  <xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    <o:PixelsPerInch>96</o:PixelsPerInch>
    </o:OfficeDocumentSettings>
  </xml>
  <![endif]-->
  <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
  <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1' />
    <meta http-equiv='X-UA-Compatible' content='IE=edge' />
  <meta name='format-detection' content='date=no' />
  <meta name='format-detection' content='address=no' />
  <meta name='format-detection' content='telephone=no' />
  <meta name='x-apple-disable-message-reformatting' />
    <!--[if !mso]><!-->
  <link href='https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i|Raleway:400,400i,700,700i' rel='stylesheet' />
    <!--<![endif]-->
  <title>Cornerstone Asset Managers &copy;</title>
  <!--[if gte mso 9]>
  <style type='text/css' media='all'>
    sup { font-size: 100% !important; }
  </style>
  <![endif]-->
  

  <style type='text/css' media='screen'>
    /* Linked Styles */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

    @media (prefers-color-scheme: dark) {
  :root {
    .section-title.email,.section-title.info,.section-title.one {color: #A87E2C !important;}
  }
}


    body { padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:#333545; -webkit-text-size-adjust:none; font-family: 'Oswald', sans-serif; }
    a { color:#A87E2C; text-decoration:none }
    p { padding:0 !important; margin:0 !important } 
    img { -ms-interpolation-mode: bicubic; /* Allow smoother rendering of resized image in Internet Explorer */ }
    .mcnPreviewText { display: none !important; }
    .text-footer a { color: #7e7e7e !important; }
    .text-footer2 a { color: #c3c3c3 !important; }
    
    /* Mobile styles */
    @media only screen and (max-device-width: 480px), only screen and (max-width: 480px) {
      .mobile-shell { width: 100% !important; min-width: 100% !important; }
      
      .m-center { text-align: center !important; }
      .m-center img{ width: 110px !important;margin-left: -190px !important; }
      .m-left { margin-right: auto !important; }
      .img-right {position: absolute;right: 10px;margin-top: -25px;}
      .img-right img{ width: 80px !important; }
      .img img{ width: 200px !important; }
      
      .center { margin: 0 auto !important; }
      
      .td { width: 50% !important; min-width: 50% !important; }

      .m-br-15 { height: 15px !important; }
      .m-separator { border-bottom: 1px solid #000000; }
      .small-separator { border-top: 1px solid #333333 !important; padding-bottom: 20px !important; }

      .m-td,
      .m-hide { display: none !important; width: 0 !important; height: 0 !important; font-size: 0 !important; line-height: 0 !important; min-height: 0 !important; }

      .m-block { display: block !important; }

      .fluid-img img { width: 100% !important; max-width: 100% !important; height: auto !important; }
      
      .content-middle { width: 140px !important; padding: 0px !important; }

      .text-white { font-size: 12px !important;line-height:5px !important;padding-bottom: 20px !important; }

      .text-white.one { font-size: 12px !important;line-height:25px !important;padding-bottom: 0px !important; }

      .text-white.two { font-size: 14px !important; }

      .h2-white { font-size: 12px !important; line-height: 25px !important;padding-bottom: 8px !important; }
      .h3-white { font-size: 24px !important; line-height: 30px !important; }

      .text4 { font-size: 12px !important; line-height: 15px !important;padding-bottom: 10px !important;}

      .line img {width: 65%;}

      .direction {font-size: 12px !important;padding: 5px 20px !important;position: absolute;margin-top: 5px;}

      .section-title.one {padding:0 20px 60px !important;}
      .section-title.email {font-size: 12px !important;}

      .mpb15 { padding-bottom: 15px; }
      .content { padding: 20px 15px !important; }

      .section-inner { padding: 0px !important; }

      .content-2 { padding: 30px 15px 30px 15px !important; }
      .pt30 { padding-top: 20px !important; }
      .p30-15 { padding: 30px 15px !important; }
      .footer { padding: 30px 15px !important; }
      .main { padding: 0px !important; }
      .section { padding: 30px 15px 30px 15px !important; }
      .section2 { padding: 0px 15px 30px 15px !important; }
      .section4 { padding: 30px 15px !important; }
      .section-inner2 { padding: 30px 15px !important; }

      .separator-outer { padding-bottom: 30px !important; }
      .section3 { padding: 30px 15px !important; }
      .mpb10 { padding-bottom: 10px !important; padding-top: 5px !important; }
      .preheader { padding-bottom: 20px !important; } 

      .column,
      .column-dir,
      .column-top,
      .column-empty,
      .column-empty2,
      .column-bottom,
      .column-dir-top,
      .column-dir-bottom { float: left !important; width: 50% !important; display: block !important; }
      .column-top .text-button { font-size: 10px !important;padding: 0 !important;font-weight: normal !important;height: 30px; }
      .column-top.one { position: absolute;right: 25px; }
      .column-top.two { position: absolute;left: 25px; }
      .column-empty { padding-bottom: 30px !important; }
      .column-empty2 { padding-bottom: 10px !important; }
      .content-spacing { width: 15px !important; }
    }
  </style>
</head>
<body class='body' style='padding:0 !important; margin:0 !important; display:block !important; min-width:100% !important; width:100% !important; background:rgba(0, 47, 104, 0.1); -webkit-text-size-adjust:none;'>
  <table width='100%' border='0' cellspacing='0' cellpadding='0'>
    <tr>
                <td align='center' valign='top'>
        <!-- Main -->
        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
          <tr>
            <td align='center'>
              <table width='650' border='0' cellspacing='0' cellpadding='0' class='mobile-shell'>
                <tr>
                      <td class='td' style='width:650px; min-width:650px; font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
          <!-- Pre Header -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                            <td class='preheader' style='padding:30px 0px 20px 0px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                   <tr>
            <th class='column-top' width='240' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; vertical-align:top;'>
            </th>
            <th class='column-empty2' width='1' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'></th>
            <th class='column' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
          </td>
          </tr>
            </table>
          <!-- END Pre Header -->

          <!-- Header -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor=''>
                      <tr>
                            <td style='padding: 30px 0px 30px 30px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0' dir='rtl' style='direction: rtl;'>
                   <tr>
            
            <th class='column-empty' width='1' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'></th>
            <th class='column-dir' dir='ltr' width='200' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal; direction:ltr;'>
        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                         <tr>
          <td class='img m-center mpb10' style='font-size:0pt; line-height:0pt; text-align:center;'><img src='https://cornerstoneassetmanagers.com/assets/img/logo/logo-dark.png' width='200' editable='true' border='0' alt='Cornerstone Logo' style='margin-left: -20px;' /></td>
                      </tr>
        </table>
            </th>
                   </tr>
            </table>
          </td>
          </tr>
            </table>
          <!-- END Header -->

                    <repeater>
          <!-- Intro -->
          <layout label='Intro'>
                  <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#A87E2C'>
                          <tr>
          <th class='column' width='325' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                       <tr>
          <td class='fluid-img' style='font-size:0pt; line-height:0pt; text-align:left;'><img src='https://cornerstoneassetmanagers.com/assets/img/stock/core/2.png' width='325' height='400' editable='true' border='0' alt='Cornerstone Asset Managers' /></td>
          </tr>
      </table>
          </th>
          <th class='column' width='325' style='font-size:0pt; line-height:0pt; padding:0; margin:0; font-weight:normal;'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                       <tr>
          <td class='content' style='padding:30px 50px;'>
            <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                <tr>
              <td class='h2-white left pb20' style='color:#ffffff; font-size:18px; line-height:38px; text-transform:uppercase; font-weight:bold; text-align:left; padding-bottom:10px;'><multiline>1 New email newsletter subscription</multiline></td>
          </tr>
                <tr>
              <td class='text-white left pb15' style='color:#ffffff; font-size:12px; line-height:20px; text-align:left; padding-bottom:8px;'><multiline><a href='#' style='color:#ffffff;'>$email</a></multiline></td>
          </tr>
                
          <!-- Button -->
                <tr>
              <td align='left'>
                  <table width='140' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                    <td class='text-button white-button' style='font-size:14px; line-height:18px; text-align:center; text-transform:uppercase; padding:10px; background:#ffffff; color:#f54084; font-weight:bold;'><multiline><a href='https://cornerstoneassetmanagers.com' target='_blank' class='link' style='color:#A87E2C; text-decoration:none;'><span class='link' style='color:#A87E2C; text-decoration:none;'>Visit Website</span></a></multiline></td>
          </tr>
          </table>
                            </td>
          </tr>
                
          <!-- END Button -->
          </table>
          </td>
          </tr>
      </table>
          </th>
          </tr>
          </table>

          </layout>
          <!-- END Intro -->

        
                    </repeater>
 
          <!-- Footer -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor=''>
                      <tr>
                            <td class='footer' style='padding:60px 30px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                   
                   
                   <tr>
                      <td class='separator' style='border-bottom:1px solid #A87E2C;'></td>
                   </tr>
                   <tr>
                      <td class='text-footer pt30' style='color:#A87E2C; font-size:12px; line-height:20px; text-align:center; padding-top:30px;'><multiline><a href='https://cornerstoneassetmanagers.com' style='color:#A87E2C !important;'>Cornerstone Asset Managers</a> © <script>document.write(new Date().getFullYear());</script></a> All Rights Reserved <br />Plot 16A, Ntinda II Road | Naguru, Kampala (U)</multiline></td>
                   </tr>
            </table>
          </td>
          </tr>
            </table>
          <!-- END Footer -->
                    
          <!-- Footer Bar -->
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                      <tr>
                            <td class='footer-bar' style='padding:35px 15px;'>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                   <tr>
                      <td class='text-footer2' style='color:#85868d; font-size:12px; line-height:20px; text-align:center;'>
                                <multiline>This message regards a newsletter subscription for Cornerstone Asset Managers through the website.</multiline>
            </td>
                   </tr>
            </table>
          </td>
          </tr>
            </table>
          <!-- END Footer Bar -->
                  </td>
                </tr>
            </table>
            </td>
          </tr>
        </table>
        <!-- END Main -->
      </td>
    </tr>
  </table>
</body>
</html>



";

try {
    $mail->send();
    echo "";
} catch (Exception $e) {
    echo "Mailer Error: " . $mail->ErrorInfo;
}

}

}

?>










