webERP Forum
SMTP server configuring - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Development Discussion & Specification (http://www.weberp.org/forum/forumdisplay.php?fid=10)
+--- Thread: SMTP server configuring (/showthread.php?tid=783)



SMTP server configuring - Jayasuriya - 02-23-2013

Hi,

I am facing problems to connect to my smtp server from the local host(wamp). can anybody have any idea about how to configure smtp server with web erp

the fallowing error is populating,

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\webERP\includes\ConnectDB_mysqli.inc on line 144


RE: SMTP server configuring - phil - 02-24-2013

Pretty sure this will be a php config issue - check smtp settings in php.ini
The smtp functionality in webERP is redundant really as emails are sent by the php mail command without the smtp parameter set - (the only exception being the OffersReceived.php script) there is probably no need for the additional tables and scripts to set smtp parameters inside webERP. Would be interested to understand the rationale for this - perhaps we could remove this spurious code?

See output of grep for the ->send() function of the htmlMimeEmail class that we use for sending email:

Code:
BackupDatabase.php:$result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>'));
doc/Manual/ManualAPIFunctions.php:    $response = $client->send($msg);
EDIProcessOrders.php:        $result = $mail->send($Recipients);
EDISendInvoices.php:                $MessageSent = $mail->send(array($CustDetails['ediaddress']));
EDISendInvoices_Reece.php:                $MessageSent = $mail->send(array($CustDetails['ediaddress']));
MailInventoryValuation.php:    $result = $mail->send($Recipients);
MailSalesReport_csv.php:$result = $mail->send($Recipients);
MailSalesReport.php:    $result = $mail->send($Recipients);

OffersReceived.php:        $result = $mail->send(array($Email), 'smtp');

PDFChequeListing.php:    $result = $mail->send($ChkListingRecipients);
PDFDeliveryDifferences.php:    $result = $mail->send($DelDiffsRecipients);
PDFDIFOT.php:    $result = $mail->send($DelDiffsRecipients);
PO_PDFPurchOrder.php:        $Success = $mail->send(array(
PrintCustTrans.php:        $result = $mail->send(array($_GET['Email']));
PrintCustTransPortrait.php:        $result = $mail->send(array($_GET['Email']));
RecurringSalesOrdersProcess.php:        $result = $mail->send(array($RecurrOrderRow['email']));
report_runner.php:    $result = $mail->send($Recipients);
Z_CreateCompanyTemplateFile.php:           $result = $mail->send($Recipients);
Z_ImportChartOfAccounts.php:            $response = $client->send($msg);
Z_ImportGLAccountGroups.php:            $response = $client->send($msg);
Z_ImportGLAccountSections.php:            $response = $client->send($msg);
Z_ImportPartCodes.php:            $response = $client->send($msg);