From: <ex...@us...> - 2013-05-12 06:24:05
|
Revision: 5942 http://sourceforge.net/p/web-erp/reponame/5942 Author: exsonqu Date: 2013-05-12 06:24:01 +0000 (Sun, 12 May 2013) Log Message: ----------- 12/5/2013 Exson Make the SMTP mail available for CounterSales.php to mail new WO. Modified Paths: -------------- trunk/CounterSales.php Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2013-05-12 05:10:16 UTC (rev 5941) +++ trunk/CounterSales.php 2013-05-12 06:24:01 UTC (rev 5942) @@ -1275,7 +1275,16 @@ $EmailSubject = _('New Work Order Number') . ' ' . $WONo . ' ' . _('for') . ' ' . $StockItem->StockID . ' x ' . $WOQuantity; //Send email to the Factory Manager - mail($_SESSION['FactoryManagerEmail'],$EmailSubject,$FactoryManagerEmail); + if($_SESSION['SmtpSetting']==0){ + mail($_SESSION['FactoryManagerEmail'],$EmailSubject,$FactoryManagerEmail); + + }else{ + include('includes/htmlMimeMail.php'); + $mail = new htmlMimeMail(); + $mail->setSubject($EmailSubject); + $result = SendmailBySmtp($mail,array($_SESSION['FactoryManagerEmail'])); + } + } //end if with this sales order there is a shortfall of stock - need to create the WO }//end if auto create WOs in on } /* end inserted line items into sales order details */ @@ -2430,4 +2439,4 @@ } } include('includes/footer.inc'); -?> \ No newline at end of file +?> |