From: <ex...@us...> - 2013-05-12 06:32:18
|
Revision: 5944 http://sourceforge.net/p/web-erp/reponame/5944 Author: exsonqu Date: 2013-05-12 06:32:14 +0000 (Sun, 12 May 2013) Log Message: ----------- 12/5/2013 Exson: Add smtp mail to DeliveryDetails.php. Modified Paths: -------------- trunk/DeliveryDetails.php Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2013-05-12 06:25:02 UTC (rev 5943) +++ trunk/DeliveryDetails.php 2013-05-12 06:32:14 UTC (rev 5944) @@ -558,7 +558,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 */ |