From: <ex...@us...> - 2013-05-12 13:52:23
|
Revision: 5958 http://sourceforge.net/p/web-erp/reponame/5958 Author: exsonqu Date: 2013-05-12 13:52:20 +0000 (Sun, 12 May 2013) Log Message: ----------- 12/5/2013 Exson: Make the smtp mail available for StockAdjustments.php. Modified Paths: -------------- trunk/StockAdjustments.php Modified: trunk/StockAdjustments.php =================================================================== --- trunk/StockAdjustments.php 2013-05-12 13:43:04 UTC (rev 5957) +++ trunk/StockAdjustments.php 2013-05-12 13:52:20 UTC (rev 5958) @@ -347,7 +347,16 @@ if ($_SESSION['InventoryManagerEmail']!=''){ $ConfirmationText = $ConfirmationText . ' ' . _('by user') . ' ' . $_SESSION['UserID'] . ' ' . _('at') . ' ' . Date('Y-m-d H:i:s'); $EmailSubject = _('Stock adjustment for'). ' ' . $_SESSION['Adjustment' . $identifier]->StockID; - mail($_SESSION['InventoryManagerEmail'],$EmailSubject,$ConfirmationText); + if($_SESSION['SmtpSetting']==0){ + mail($_SESSION['InventoryManagerEmail'],$EmailSubject,$ConfirmationText); + }else{ + include('includes/htmlMimeMail.php'); + $mail = new htmlMimeMail(); + $mail->setSubject($EmailSubject); + $mail->setText($ConfirmationText); + $result = SendmailBySmtp($mail,array($_SESSION['InventoryManagerEmail'])); + } + } unset ($_SESSION['Adjustment' . $identifier]); |