| Current Path : /var/www/html/mmishra/iws8/html/erp/ |
| Current File : /var/www/html/mmishra/iws8/html/erp/weeklymails.php |
<?php
include('include/config.inc');
include('include/functions.inc');
require('classes/PHPMailerAutoload.php');
require("classes/class.phpmailer.php");
date_default_timezone_set('Asia/Kolkata');
dbConnect("istore");
//********************approved item availability notice
$rs = mysql_query("select * from indents where status='Approved' and date(date_indent)>'2017-10-01'");
while ($o = mysql_fetch_object($rs)) {
$email = employee_email($o->emp_no);
//$email = 'mmishra@iiita.ac.in';
$mm = available_items($o->indent_no);
if ($mm && $email && stock_available($o->indent_no)) {
$str = "Dear Indentor
<br><br>
With reference to your indent No. $o->indent_no some items marked with <font size='+1' color='red'>*</font> are partially available readily in the stock.
Kindly collect them on first come first serve basis during 12 - 1 PM (Cleaning items) and 3 - 4 PM (Stationary & Crockery items) at your suitable convenience.
Remaining items, if any, may take some time as they are subject to purchase processing. Please note, <font size='+1' color='green'>*</font> marked items are already issued.
<br><br>$mm<br><br>
Thanks,<br><br>";
automailer ($email, "Item Availability", $str);
//automailer('istore@iiita.ac.in', "Item Availability", $str);
}
}
?>