MrMayberry Posted March 5, 2023 Share Posted March 5, 2023 I am getting emails with a lot of HTML coding exposed see below? Any fixes or comments? Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 5, 2023 Author Share Posted March 5, 2023 Ok it appears to be email formatting and ability to send the orders or confirmations? It use to look like this: Now it doesn't send email to customer, and this is sent to store owner with bad formatting? The additional email for order's doesn't receive anything? I did add a couple add-ons from the app store the other day: Any ides would be appreciated, we planned going live tomorrow AM??? Thanks in advance... Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 6, 2023 Share Posted March 6, 2023 18 hours ago, MrMayberry said: I am getting emails with a lot of HTML coding exposed see below? Any fixes or comments? Could you show the email template and its design? 1) To show email template go to Admin > Design and CMS > E-mail templates and edit Order confirmation template 2) To show design go to Admin > Design and CMS > Themes, click Pages button and select Email/Email Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 7, 2023 Author Share Posted March 7, 2023 15 hours ago, pandrei said: Could you show the email template and its design? 1) To show email template go to Admin > Design and CMS > E-mail templates and edit Order confirmation template 2) To show design go to Admin > Design and CMS > Themes, click Pages button and select Email/Email Here is the Order Confirmation template: And here is the design: Any help would be greatly appreciated, it may be due to one of those updates that has the email not working? Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 7, 2023 Share Posted March 7, 2023 It's strange: 1) I see the test lines (see attached image) into your first image but I did not see ones into the email and design templates 2) The email sent to the owner and the buyer must be the same, but they are different in your case. I see that you showed the emails for different orders, but the form must be the same. 3) What value is in Send Extra Order Emails To field of the Edit sales channel page? (Sales Channels -> Your sales channel -> Edit) Maybe there are the spaces or other invisible characters? Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 7, 2023 Author Share Posted March 7, 2023 3 hours ago, pandrei said: It's strange: 1) I see the test lines (see attached image) into your first image but I did not see ones into the email and design templates 2) The email sent to the owner and the buyer must be the same, but they are different in your case. I see that you showed the emails for different orders, but the form must be the same. 3) What value is in Send Extra Order Emails To field of the Edit sales channel page? (Sales Channels -> Your sales channel -> Edit) Maybe there are the spaces or other invisible characters? This is what is in that area: (I think I read somewhere that the Extra order email may have to go to the same domain?) Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 8, 2023 Author Share Posted March 8, 2023 (edited) So it appears that the emails all have this broken "html" in all emails coming out of the software, even my demo site which is 4.08? Maybe it is a server/php setting? Even the login email has it: Edited March 8, 2023 by MrMayberry Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 8, 2023 Share Posted March 8, 2023 22 hours ago, MrMayberry said: This is what is in that area: (I think I read somewhere that the Extra order email may have to go to the same domain?) Yes, it is desirable. Otherwise, you may end up on the spammers list. 3 hours ago, MrMayberry said: So it appears that the emails all have this broken "html" in all emails coming out of the software, even my demo site which is 4.08? Maybe it is a server/php setting? Could you show the page Admin -> Settings -> Configuration -> E-Mail Options? Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 8, 2023 Author Share Posted March 8, 2023 Here is what I got: Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 8, 2023 Share Posted March 8, 2023 6 hours ago, MrMayberry said: Here is what I got: Thanks. What about PHP sendmail settings? Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 8, 2023 Author Share Posted March 8, 2023 3 hours ago, pandrei said: Thanks. What about PHP sendmail settings? A couple of the settings below those 2 on your and mine don't match? Yes that is what I have: Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 9, 2023 Share Posted March 9, 2023 Thanks. PHP settings are OK. I think the cause in sendmail. Do you have access to the command line on the host? Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 9, 2023 Author Share Posted March 9, 2023 1 hour ago, pandrei said: Thanks. PHP settings are OK. I think the cause in sendmail. Do you have access to the command line on the host? Yes I do have access. Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 9, 2023 Share Posted March 9, 2023 51 minutes ago, MrMayberry said: Yes I do have access. Let's try to check sending mail via sendmail. I've attached two files: 1. Place it in home dir 2. Edit test.sh file and change the emails into the first and the second lines 3. Use chmod to add execute flag chmod +x test.sh 4. And run the test 5. Check your email. You should receive a html email It's a simple email structure. If everything is OK, we will try to send a multipart email (just like osCommerce sends) contents.html test.sh Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 9, 2023 Author Share Posted March 9, 2023 50 minutes ago, pandrei said: Let's try to check sending mail via sendmail. I've attached two files: 1. Place it in home dir 2. Edit test.sh file and change the emails into the first and the second lines 3. Use chmod to add execute flag chmod +x test.sh 4. And run the test 5. Check your email. You should receive a html email It's a simple email structure. If everything is OK, we will try to send a multipart email (just like osCommerce sends) contents.html 2.51 kB · 0 downloads test.sh 323 B · 0 downloads I was able to follow the instructions and the email was sent and received: Please advise... Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 9, 2023 Share Posted March 9, 2023 1 hour ago, MrMayberry said: Please advise... Let's check multipart email sending. I've attached two files, please follow the same steps to send an email, but use test2.sh instead of test.sh test2.sh contents2.txt Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 9, 2023 Author Share Posted March 9, 2023 6 minutes ago, pandrei said: Let's check multipart email sending. I've attached two files, please follow the same steps to send an email, but use test2.sh instead of test.sh test2.sh 403 B · 0 downloads contents2.txt 9.89 kB · 0 downloads It appears this one is working also: (No images but still looks/formats correctly) Thanks again for the assist... Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 9, 2023 Share Posted March 9, 2023 34 minutes ago, MrMayberry said: Thanks again for the assist... You are welcome, Billy. Try to run the next test3.sh - it uses the previous contents2.txt file test3.sh Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 9, 2023 Author Share Posted March 9, 2023 4 hours ago, pandrei said: You are welcome, Billy. Try to run the next test3.sh - it uses the previous contents2.txt file test3.sh 413 B · 1 download Looks to have worked also: Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 9, 2023 Share Posted March 9, 2023 Well, the latest test3.sh generates exactly the same email as original osCommerce does. Are you sure you did not change php files that processing email sending? Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 10, 2023 Author Share Posted March 10, 2023 4 hours ago, pandrei said: Well, the latest test3.sh generates exactly the same email as original osCommerce does. Are you sure you did not change php files that processing email sending? Not to my knowledge, I have not updated any files manually? I did the updates accordingly and here we are? They have a thread going with Ivan and mendoh about not being able to send emails? Could they be having the same trouble? Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 10, 2023 Share Posted March 10, 2023 7 hours ago, MrMayberry said: Not to my knowledge, I have not updated any files manually? I did the updates accordingly and here we are? They have a thread going with Ivan and mendoh about not being able to send emails? Could they be having the same trouble? No, it's another problem. You receive the emails but they are not well formatted. We know now that your sendmail works fine with the original osCommerce emails. Could you give me the access to FTP and to admin panel? Quote Link to comment Share on other sites More sharing options...
pandrei Posted March 10, 2023 Share Posted March 10, 2023 The solution for this problem. If you are using sendmail for sending emails and you have PHP version >= 8.0, you have to change the E-Mail linefeeds for headers to CRLF Quote Link to comment Share on other sites More sharing options...
MrMayberry Posted March 10, 2023 Author Share Posted March 10, 2023 Great Job! This is now working great and I want to thank @pandrei for their dedication and persistence in solving this issue for me. You and your teams are killing the support for OSC v4.X!!! Keep up the great work to all! pandrei 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.