From: <ex...@us...> - 2013-05-12 14:06:34
|
Revision: 5960 http://sourceforge.net/p/web-erp/reponame/5960 Author: exsonqu Date: 2013-05-12 14:06:31 +0000 (Sun, 12 May 2013) Log Message: ----------- 12/5/2013 Exson: Make smtp mail available for StockLocTransferReceive.php. Modified Paths: -------------- trunk/StockLocTransferReceive.php Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2013-05-12 13:53:09 UTC (rev 5959) +++ trunk/StockLocTransferReceive.php 2013-05-12 14:06:31 UTC (rev 5960) @@ -338,7 +338,15 @@ "\r\n" . _('By user') . ': ' . $_SESSION['UserID'] . "\r\n" . _('At') . ': ' . Date('Y-m-d H:i:s'); $EmailSubject = _('Cancelled balance of transfer'). ' ' . $_SESSION['Transfer']->TrfID; - 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'])); + } } } $i++; @@ -586,4 +594,4 @@ </form>'; } include('includes/footer.inc'); -?> \ No newline at end of file +?> |