HOME


Mini Shell 1.0
DIR: /home/islapiiu/www/send-email/
Upload File :
Current File : /home/islapiiu/www/send-email/send-all.php
<?php

include 'db.php';

date_default_timezone_set('Asia/Colombo');

$sql = "SELECT * FROM `emails`"; 

$db = new DB();
$result = $db->readQuery($sql);

while($row = mysql_fetch_array($result)) {
      
    $subject = "Web Design Packages - Sublime Holdings";

    $visitor_message = '<!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">
                <head>
                <meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" />
                <title>Sublime Holdings -  Web Design Packages </title>
                </head>

                <body bgcolor = "#8d8e90">
                <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" bgcolor = "#8d8e90">
                <tr>
                <td><table width = "600" border = "0" cellspacing = "0" cellpadding = "0" bgcolor = "#FFFFFF" align = "center">
                <tr>
                <td><table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td width = "20"> </td>
                <td width = "144"><a href = "http://www.sublime.lk/" target = "_blank"><img src = "http://www.sublime.lk/send-email/images/e-creation-lanka-logo-text.jpg" border = "0" alt = "" style = "padding: 12px 0px 0px 0px;"/></a></td>
                <td width = "393"><table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td height = "46" align = "right" valign = "middle"><table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td width = "67%" align = "right"><font style = "font-family: Helvetica, Arial, sans-serif; color:#68696a; font-size:25px; text-transform:uppercase"><a href = "http://www.sublime.lk/" style = "color:#0069D1; text-decoration:none"><strong>Sublime Holdings</strong></a></font></td>
                <td width = "3%">&nbsp;
                </td>
                </tr>
                </table></td>
                </tr>
                <tr>
                <td height = "30">
                <img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_01_04.jpg" width = "410" height = "30" border = "0" alt = ""/>
                
                <font style="font-family: Helvetica,Arial,sans-serif; color: #68696a; font-size: 15px;"> 
                <h3 style="margin-top: 0px; margin-bottom: 4px; margin-left: 38px; color: #868686;">The Reliable IT Partner in Your Business Life</h3>
                </font>               
                </td>
                </tr>
                </table>
                </td>
                </tr>
                </table></td>
                </tr>
                <tr>
                <td align = "center"><a href = "http://www.sublime.lk/" target = "_blank"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_02.jpg" alt = "" width = "100%" border = "0"/></a></td>
                </tr>
                <tr>
                <td align = "center" valign = "middle"><table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                 
                </table></td>
                </tr>  
                <tr>
                <td align = "center" style = "font-family: Helvetica, Arial, sans-serif; color: #005DBB; font-size: 24px;">Website Design Packages</td>
                </tr>
                <tr>
                <td>&nbsp;
                </td>
                </tr>
                <tr>
                <td>
                <table width = "600" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td width = "18">&nbsp;
                </td>
                <td width = "280" align = "center" valign = "top">
                <table width = "280" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_04_01.jpg" width = "280" height = "15" style = "display:block" border = "0" alt = ""/></td>
                </tr>
                <tr>
                <td height = "30" align = "center" valign = "middle" bgcolor = "#005DBB"><font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:20px; text-transform:uppercase"><strong>Starter</strong></font></td>
                </tr>
                <tr>
                <td align = "center" valign = "middle" bgcolor = "#005DBB">
                <font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:14px">
                <strong>
                <a href = "http://www.sublime.lk/web-design-price/" target = "_blank" style = "color:#ffffff; text-decoration:none">Rs: 30,000/=<br>Simplest Package to Get you Started <br><br></a>
                </strong>
                </font>
                </td>
                </tr>
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_00.jpg" alt = "" width = "280" height = "15" /></td>
                </tr>
                <tr>
                <td valign = "middle" bgcolor = "#03bcda">
                <ul style = "font-family: Verdana, Geneva, sans-serif; font-size: 13px;">
                <li>5 Web Pages</li>
                <li>Free .com, .co, .net, .org, .info Domain</li>
                <li>1 Proposal Design Concept</li>
                <li>Free 500 MB Hosting Space</li> 
                <li>Mobile Responsive Design</li>
                <li>Unlimited Bandwidth</li>
                <li>1 Email Accounts</li>
                <li>Contact Form + Location Map</li>
                <li>Language Translator</li>
                </ul>
                </td>
                </tr>
                </table>
                </td> 
                <td width = "18">&nbsp;
                </td>
                <td width = "280" align = "center" valign = "top">
                <table width = "280" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_04_01.jpg" width = "280" height = "15" style = "display:block" border = "0" alt = ""/></td>
                </tr>
                <tr>
                <td height = "30" align = "center" valign = "middle" bgcolor = "#005DBB"><font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:20px; text-transform:uppercase"><strong>Business</strong></font></td>
                </tr>
                <tr>
                <td align = "center" valign = "middle" bgcolor = "#005DBB">
                <font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:14px">
                <strong>
                <a href = "http://www.sublime.lk/web-design-price/" target = "_blank" style = "color:#ffffff; text-decoration:none">Rs: 60,000/=<br>The The Most Popular Package We Offer<br><br></a>
                </strong>
                </font>
                </td>
                </tr>
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_00.jpg" alt = "" width = "280" height = "15" /></td>
                </tr>
                <tr>
                <td valign = "middle" bgcolor = "#03bcda">
                <ul style = "font-family: Verdana, Geneva, sans-serif; font-size: 13px;">
                <li>20 Web Pages</li>
                <li>Free .lk, .com, .co, .net, .org, .info Domain</li>
                <li>2 Proposal Design Concepts</li>
                <li>Free 1GB Hosting Space</li>
                <li>Advance Control Panel to Update The Website</li>
                <li>SEO & Mobile Responsive Design</li>
                <li>Content Writing</li> 
                <li>Unlimited Bandwidth</li>
                <li>2 Email Accounts</li>
                <li>Contact Form + Location Map</li>
                <li>Basic Search Engine Optimization</li>
                <li>Language Translator</li>
                </ul>
                </td>
                </tr>
                </table>
                </td>
                <td width = "19">&nbsp;
                </td>
                </tr>
                </table>
                </td>
                </tr> 
                <tr>
                <td width = "19">&nbsp;
                </td>
                </tr> 
                <tr>
                <td>
                <table width = "600" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td width = "18">&nbsp;
                </td>
                <td width = "280" align = "center" valign = "top">
                <table width = "280" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_04_01.jpg" width = "280" height = "15" style = "display:block" border = "0" alt = ""/></td>
                </tr>
                <tr>
                <td height = "30" align = "center" valign = "middle" bgcolor = "#005DBB"><font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:20px; text-transform:uppercase"><strong>Premium</strong></font></td>
                </tr>
                <tr>
                <td align = "center" valign = "middle" bgcolor = "#005DBB">
                <font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:14px">
                <strong>
                <a href = "http://www.sublime.lk/web-design-price/" target = "_blank" style = "color:#ffffff; text-decoration:none">Rs: 95,000/=<br>The Perfect Package for Your Business<br><br></a>
                </strong>
                </font>
                </td>
                </tr>
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_00.jpg" alt = "" width = "280" height = "15" /></td>
                </tr>
                <tr>
                <td valign = "middle" bgcolor = "#03bcda">
                <ul style = "font-family: Verdana, Geneva, sans-serif; font-size: 13px;">
                <li>Unlimited Web Pages</li>
                <li>Free .lk, .com, .co, .net, .org, .info Domain</li>
                <li>4 Proposal Design Concepts</li>
                <li>Free Unlimited Hosting Space</li>
                <li>Advance Control Panel to Update The Website</li>
                <li>SEO & Mobile Responsive Design</li>
                <li>Content Writing</li> 
                <li>Unlimited Bandwidth</li>
                <li>10 Email Accounts</li>
                <li>Contact Form + Location Map</li>
                <li>Advance Search Engine Optimization</li>
                <li>Language Translator</li> 
                </ul>
                </td>
                </tr>
                </table>
                </td>

                <td width = "18">&nbsp;
                </td>
                <td width = "280" align = "center" valign = "top">
                <table width = "280" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_04_01.jpg" width = "280" height = "15" style = "display:block" border = "0" alt = ""/></td>
                </tr>
                <tr>
                <td height = "30" align = "center" valign = "middle" bgcolor = "#005DBB"><font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:20px; text-transform:uppercase"><strong>Gold</strong></font></td>
                </tr>
                <tr>
                <td align = "center" valign = "middle" bgcolor = "#005DBB">
                <font style = "font-family: Helvetica, Arial, sans-serif; color:#ffffff; font-size:14px">
                <strong>
                <a href = "http://www.sublime.lk/web-design-price/" target = "_blank" style = "color:#ffffff; text-decoration:none">Rs: 140,000/=<br>The Most Advanced & Complete Package<br><br></a>
                </strong>
                </font>
                </td>
                </tr>
                <tr>
                <td bgcolor = "#03bcda"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_00.jpg" alt = "" width = "280" height = "15" /></td>
                </tr>
                <tr>
                <td valign = "middle" bgcolor = "#03bcda">
                <ul style = "font-family: Verdana, Geneva, sans-serif; font-size: 13px;">
                <li>Unlimited Web Pages</li>
                <li>Any Free Domain Name</li>
                <li>5 Proposal Design Concepts</li>
                <li>Free Unlimited Hosting Space</li>
                <li>Advance Control Panel to Manage The Website</li>
                <li>User and Member Registration</li>
                <li>Shopping Cart & Payment Gateway</li>
                <li>SEO & Mobile Responsive Design</li>
                <li>Content Writing</li> 
                <li>Unlimited Bandwidth</li>
                <li>Unlimited Email Accounts</li>
                <li>Contact Form + Location Map</li>
                <li>Advance Search Engine Optimization</li>
                <li>Language Translator</li>
                </ul>
                </td>
                </tr>
                </table>
                </td>
                <td width = "19">&nbsp;
                </td>
                </tr>
                </table>
                </td>
                </tr>
                <tr>
                <td>&nbsp;
                </td>
                </tr>
                <tr>
                <td>
                <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td width = "90%" align = "center">
                <font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:15px; text-transform:uppercase">
                <strong> <br/>  
                Hotline (24h): 070 277 3500
                 <br/> <br/>
                Colombo Office: 011 3663 500
                 <br/> <br/>
                Galle Office: 091 312 7744
                 <br/> <br/>
                Website: www.sublime.lk &nbsp;
                 <br/> <br/>
                Email: [email protected] <br/> <br/></strong>
                </font>
                </td>
                </tr>
                <tr>
                <td width = "5%" align = "center">&nbsp;
                </td>
                </tr>
                </table>
                </td>
                </tr>
                <tr>
                <td><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_07.jpg" width = "598" height = "7" style = "display:block" border = "0" alt = ""/></td>
                </tr>
                <tr>
                <td>&nbsp;
                </td>
                </tr>
                <tr>
                <td><table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                <td width = "5%" align = "center">&nbsp;
                </td>
                <td width = "22%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><a href = "http://www.sublime.lk/" style = "color:#010203; text-decoration:none"><strong>Sublime Holdings</strong></a></font></td>
                <td width = "2%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><strong>|</strong></font></td>
                <td width = "9%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><a href = "http://www.sublime.lk/about-us/" style = "color:#010203; text-decoration:none"><strong>About</strong></a></font></td>
                <td width = "2%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><strong>|</strong></font></td>
                <td width = "10%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><a href = "http://www.sublime.lk/services/" style = "color:#010203; text-decoration:none"><strong>Services </strong></a></font></td>
                <td width = "2%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><strong>|</strong></font></td>
                <td width = "11%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><a href = "http://www.sublime.lk/web-design-price/" style = "color:#010203; text-decoration:none"><strong>Prices </strong></a></font></td>
                <td width = "2%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><strong>|</strong></font></td>
                <td width = "17%" align = "center"><font style = "font-family: Helvetica, Arial, sans-serif; color:#010203; font-size:10px; text-transform:uppercase"><a href = "http://www.sublime.lk/contact-us/" style = "color:#010203; text-decoration:none"><strong>Contact </strong></a></font></td>
                <td width = "4%" align = "right"><a href = "https://facebook.com/synotec.lk" target = "_blank"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_09_01.jpg" alt = "facebook" width = "22" height = "19" border = "0" /></a></td>
                <td width = "5%" align = "center"><a href = "https://twitter.com/" target = "_blank"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_09_02.jpg" alt = "twitter" width = "23" height = "19" border = "0" /></a></td>
                <td width = "4%" align = "right"><a href = "http://www.linkedin.com/" target = "_blank"><img src = "http://www.sublime.lk/send-email/images/PROMO-GREEN2_09_03.jpg" alt = "linkedin" width = "20" height = "19" border = "0" /></a></td>
                <td width = "5%">&nbsp;
                </td>
                </tr>
                </table></td>
                </tr>
                <tr>
                <td>&nbsp;
                </td>
                </tr>
                </table></td>
                </tr>
                </table>
                </body>
                </html>';
 
    $from = 'Sublime Holdings <[email protected]>';
    $from_reply = '[email protected]';

    $headers = "From: " . $from . "\r\n";
    $headers .= "Reply-To: " . $from_reply . "\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    
    if (mail($row['mail'], $subject, $visitor_message, $headers)) {
            echo "id: " . $row["id"]. " | Email: " . $row["mail"]. " | Status: Success </br>";
        } else { 
            echo "id: " . $row["id"]. " | Email: " . $row["mail"]. " | Status: Error </br>";
        }
        
        
        
        
}