Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Problem with emails from store after PHP 8.0
Author « Topic »  

clivewalker
Ecommerce Template Expert

United Kingdom
689 Posts

Pre-sales questions only
(More Details...)

Posted - 11/15/2023 :  01:39:46  
Has anyone seen this problem with emails after upgrading to PHP 8.0?

Emails for customers don't have any HTML encoding. Emails appear like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><style type="text/css">body{font-size:11px; font-family: Tahoma, Helvetica, Arial, Verdana}hr{height: 0;border-width: 1px 0 0 0;border-style: solid;border-color: #006AC8;}</style></head><body class="receiptbody"><p>
<strong style="font-size: 12px;">Please do not reply to this automated email as a reply will not be seen</strong><span style="font-size: 12px;">.</span></p>
<p>

<span style="font-size: 12px;">Thank you for shopping at xxx - All the items you ordered are in stock - Your order (<strong>Not Northern Ireland - Not offshore islands</strong>) is now being processed and will go out with the next collection - see below.<br />

<br />

CVW Web Design
www.cvwdesign.co.uk | web design and development

clivewalker
Ecommerce Template Expert

United Kingdom
689 Posts

Pre-sales questions only
(More Details...)

Posted - 11/17/2023 :  01:42:12  
Anyone else seen this problem? Do I need to install a different extension (via host control panel) in PHP 8.0???

CVW Web Design
www.cvwdesign.co.uk | web design and development

clivewalker
Ecommerce Template Expert

United Kingdom
689 Posts

Pre-sales questions only
(More Details...)

Posted - 11/21/2023 :  04:59:38  
Anyone?? Vince???

CVW Web Design
www.cvwdesign.co.uk | web design and development

John Nolan
Advanced Member

Canada
406 Posts

Posted - 11/25/2023 :  06:37:43  
I had a very similar experience. In the end, I gave up and dropped down to 7 point something. My isp assured me they are running a "hardened" version, and that it was secure.

See discussion here:
https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=115514&SearchTerms=my,confirmation,emails,are,a,mess

Vince
Administrator

42690 Posts

Posted - 11/25/2023 :  10:22:43  
Hi Clive
Sorry if I missed this but send me an email (vince AT ecommercetemplates DOT com) with the FTP login details if you want me to investigate. Can you please make sure first though that you are on one of the latest versions.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Phil
ECT Moderator

United Kingdom
7668 Posts

Posted - 11/26/2023 :  03:15:51  
quote:
Has anyone seen this problem with emails after upgrading to PHP 8.0?


I seem to recall a while ago I had the same problem so I switched the email in the main settings of the admin to use PHP Mailer and it cured it



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 11/26/2023 03:27:42

Vince
Administrator

42690 Posts

Posted - 11/29/2023 :  02:53:34  
This seems to come down to the $customheaders parameter in the includes.php file having just "\n" line endings when they should be "\r\n". I'm not sure why this was ok before and is not with PHP 8+ but it cures the problem...

Was....

$customheaders = "MIME-Version: 1.0\nFrom: %from%\nReply-To: bert@bloggs.com\nContent-type: text/html; charset=iso-8859-1\n";

Now working with...

$customheaders = "MIME-Version: 1.0\r\nFrom: %from%\r\nReply-To: bert@bloggs.com\r\nContent-type: text/html; charset=iso-8859-1\r\n";

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

clivewalker
Ecommerce Template Expert

United Kingdom
689 Posts

Pre-sales questions only
(More Details...)

Posted - 11/29/2023 :  03:57:38  
Many thanks Vince!

CVW Web Design
www.cvwdesign.co.uk | web design and development
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000