Hello. I made ​​some changes to my site and since then I no longer receive emails regarding orders. What files board I made ​​the mistake? Thank you in advance.
Hello makaron. of course i have inserted the email in the good field in setting tab. My site is ok since 3 years. but I have recently made ​​changes and since it does not work anymore. I do not remember the changed files that could be involved. Thanks for your help
Code which is connected with sending email with order is in two files: actions_client/p.php and core/orders.php. Functions needs also tempaltes which are in templates/orders_print.tpl. Check these files and compare them with original onces.
The sendEmail function uses very simple header with only one parameter: if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sSender ) ){ the "From:.$sSender" is the only header content. In this case mail function uses the standard settings (poor as well). declare a $sHeader and put into: $sHeader='MIME-Version:1.0'."\n".'Content-type:text/html;charset=UTF-8'."\n".'Content-Transfer -Encoding:8bit'."\n".'From: <'.$sSender.">\n"; and put the $sHeader instead of 'From: '.$sSender You will get utf-8, and html formatted emails. I use this with polish language, where we have a lot of strange letters ;-) ąćęłńóśźż
the line breaks - you have to put them in the order_print.tpl , where the e-mail template is. use <br/> for line breaks. example: $aData[sFirstName] $aData[sLastName] <br/> $aData[sCompanyName] <br/> $aData[sStreet] <br/> $aData[sZipCode] $aData[sCity] <br/> $aData[sPhone] <br/> $aData[sEmail] <br/> </br> ------------------------ <br/> $lang[Order_customer_products] <br/> ------------------------ <br/> $aData[sProducts] <br/>
:-) as i thought this line: if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sHeader ) ){ change to: if( @mail( $sTargetEmail, $sTopic, $sMailContent, $sHeader ) ){
For questions about products the email of the sender does not appear and we see this famous abuse@abuse.fr.
Content-Transfer -Encoding: 8bit From: Date: Sun, 22 Jan 2012 08:13:13 -0000 Customer-Id: 3484 Abuse: abuse@ispfr.net Votre nom: test Téléphone: 0101010101 bla bla
For orders there is also abuse. With some ISPs such as Orange, the customer does not receive their mail, which are treated as spam. Thank you for your thoughts.
When I use this solution and the order contains more than one product the products will be displayed in one long row after each other in the email. How can I separate the ordered products so they will be displayed on separate rows?