2009-02-11 12:31
I have a problem with the new orders. Use the Bulgarian Lang file of Quick.Cart 3.2 but after an order is strange email characters. How can the letter for a new order to be CP-1251 encoding?
» Quick.Cart v3.x 2009-02-11 14:36
please show us your test website, I have to see the extent of your problem.. You might have the UTF-8 file format bug: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5807
2009-02-11 15:00
I found the answer. Here is the function sendEmail on the /core/common.php: function sendEmail( $aForm, $sFile = 'messages.tpl', $sTargetEmail = null ){ extract( $aForm ); $oTpl =& TplParser::getInstance( ); if( !empty( $sTopic ) && !empty( $sMailContent ) && checkEmail( $sSender ) === true ){ $sMailContent = $sMailContent; $sTopic = $sTopic; if( !empty( $sPhone ) ) $sMailContent = $GLOBALS['lang']['Phone'].': '.change2Latin( $sPhone )."\n".$sMailContent; if( !empty( $sName ) ) $sMailContent = $GLOBALS['lang']['Name_and_surname'].': '.change2Latin( $sName )."\n".$sMailContent; if( !isset( $sTargetEmail ) ) $sTargetEmail = $GLOBALS['config']['email']; if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sSender."\r\nContent-type: text/plain; charset=utf-8\r\n" ) ){ if( isset( $sFile ) ) return $oTpl->tbHtml( $sFile, 'MAIL_SEND_CORRECT' ); } else{ if( isset( $sFile ) ) return $oTpl->tbHtml( $sFile, 'MAIL_SEND_ERROR' ); } } else{ if( isset( $sFile ) ) return $oTpl->tbHtml( $sFile, 'REQUIRED_FIELDS' ); } } // end function sendEmail
komarik 2009-03-05 21:11
Thanks, I was very much helped by this hint. Mail was sent in the coding win-1251.