function mail dont work

cachousam

Avatar: cachousam

2013-03-31 16:55

Hello to all.
I have a site in 3.7 that runs well long enough.
But since 1 week, I don't receive a mail when I have an order.
Have you ever had the problem.
If not, what are the files that I need to check.
Thanks.

» Quick.Cart v3.x

interkob

Avatar: interkob

2013-03-31 17:38

check your spam folder or server settings

cachousam

Avatar: cachousam

2013-03-31 17:43

Hello,
My spam folder is empty and my server settings are good.
What is the file that allow sending mail to the administrator when a order is done.
Thanks

interkob

Avatar: interkob

2013-03-31 18:25

core/orders.php

cachousam

Avatar: cachousam

2013-04-15 15:51

I'm sorry but i dont find where is the problem.
Here is my code in core/order.php.
I have install the plugin send order to customer.
All is fine since a long time.
Why now appears this problem?
Thanks for your help

* @param int $iOrder
*/
function sendEmailWithOrderDetails( $sFile, $iOrder ){
$oTpl =& TplParser::getInstance( );
$content = null;
$aData = $this->throwOrder( $iOrder );

$aData['sProducts'] = $this->listProducts( $sFile, $iOrder, 'ORDER_EMAIL_' );
$aData['sOrderSummary'] = $this->aOrders[$iOrder]['sOrderSummary'];
$aPayment = $this->throwPayment( $aData['iPayment'] );
if( !empty( $aPayment['sDescription'] ) )
$aData['sPaymentDescription'] = $aPayment['sDescription'];

$oTpl->setVariables( 'aData', $aData );
$aSend['sMailContent'] = ereg_replace( '\|n\|', "\n", $oTpl->tbHtml( $sFile, 'ORDER_EMAIL_BODY' ) );
$aSend['sTopic'] = $oTpl->tbHtml( $sFile, 'ORDER_EMAIL_TITLE' );
$aSend['sSender']= $GLOBALS['config']['orders_email'];
sendEmail( $aSend, null, $GLOBALS['config']['orders_email'] );
$this->sendEmailToCustomerWithOrderDetails( $sFile, $iOrder );
} // end function sendEmailWithOrderDetails


/**
* Send email to customer with order details
* @return void
* @param string $sFile
* @param int $iOrder
*/
function sendEmailToCustomerWithOrderDetails( $sFile, $iOrder ){
$oTpl =& TplParser::getInstance( );
$content = null;
$aData = $this->throwOrder( $iOrder );

$aData['sProducts'] = $this->listProducts( $sFile, $iOrder, 'CUSTOMER_ORDER_EMAIL_' );
$aData['sOrderSummary'] = $this->aOrders[$iOrder]['sOrderSummary'];

$oTpl->setVariables( 'aData', $aData );
$aSend['sMailContent'] = ereg_replace( '\|n\|', "\n", $oTpl->tbHtml( $sFile, 'CUSTOMER_ORDER_EMAIL_BODY' ) );
$aSend['sTopic'] = $oTpl->tbHtml( $sFile, 'CUSTOMER_ORDER_EMAIL_TITLE' );
$aSend['sSender']= $GLOBALS['config']['orders_email'];
sendEmail( $aSend, null, $aData['sEmail'] );
} // end function sendEmailToCustomerWithOrderDetails

treewood (OpenSolution)

Avatar: treewood

2013-04-16 07:33

Please read this (Problems with sending e-mails through the contact form or order confirmation):
http://opensolution.org/rules-server-requirements-for-ext-edition,en,154,221.html
If you don't change email in admin panel and you received emails before then this is not script problem but changed server configuration (contact with server provider) or more restricted configuration of email server (contact with email server administrator)

Back to top
about us | contact