Post by HarleyB » Mon Jun 12, 2023 6:16 am

I have 2 problems that i can't solve. Hopefully someone here can help me :)
1. The biggest problem that i have is that the emails that is beeing sent from the website, which includes enquiries, order confirmations etc, does not longer format like it did before. It's just sending the message as pure text, like this for example:

------=_NextPart_c42680c88b49950008ecef638d9189cc
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

//here is the message
------=_NextPart_c42680c88b49950008ecef638d9189cc--

And the order confirmations looks even stranger. (cant send it here since it's extremely long)

2. The second problem that i'm having is that the contact form doesn't send the customers emailadress along with the enquiry. In other words the message appeares to be sent from myself, to myself. I have tried some solutions, but nothing works. For information, this is using the "Mail Protocol" set to "Mail" and the "Mail parameter" set to "-f (myemail)".

I have also tried to change the "Mail protocol" to SMTP and then the problem above is solved, but an even bigger problem apears. When using SMTP the customers email is correctly passed in to the "From" field in the email, but now the message is completely empty. This includes both the includes enquiries and order confirmations. And now the admin wont receive any notifications of the orders anymore aswell, which i did before using "Mail Protocol" set to "Mail".

Can someone please help me?

Newbie

Posts

Joined
Mon Jun 12, 2023 5:34 am

Post by ADD Creative » Tue Jun 13, 2023 12:15 am

What version of OpenCart? What version of PHP? What theme and extensions are you using?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by HarleyB » Tue Jun 13, 2023 1:04 am

I'm using following:
Opencart: 2.3.0.2
PHP: 8.2
Theme: simplica
Extensions: vQmod

Newbie

Posts

Joined
Mon Jun 12, 2023 5:34 am

Post by ADD Creative » Tue Jun 13, 2023 7:28 am

The mail class in OpenCart 2.3.0.2 is not compatible with PHP 8. You would need to change the line endings.

You can see the changes required for OpenCart 3.0.3.8. You would need to apply something similar to OpenCart 2.3.0.2.
https://github.com/opencart/opencart/pull/10539/files

The second issue could be that the reply to header is not set. Again you can see the change for OpenCart 3 at the link below.
https://github.com/opencart/opencart/co ... 2f7903601e

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by HarleyB » Tue Jun 13, 2023 1:35 pm

I actually tried to change version to PHP 7.4 like 10 min before you answer. And it worked! Thanks anyway for you answer!

I have no idea why the server suddenly changed version. I have never manually updated it myself.

Newbie

Posts

Joined
Mon Jun 12, 2023 5:34 am

Post by HarleyB » Tue Jun 13, 2023 1:35 pm

I actually tried to change version to PHP 7.4 like 10 min before you answer. And it worked! Thanks anyway for you answer!

I have no idea why the server suddenly changed version. I have never manually updated it myself.

Newbie

Posts

Joined
Mon Jun 12, 2023 5:34 am

Post by paulfeakins » Tue Jun 13, 2023 7:49 pm

HarleyB wrote:
Tue Jun 13, 2023 1:35 pm
I actually tried to change version to PHP 7.4 like 10 min before you answer. And it worked! Thanks anyway for you answer!
Now that your problem is solved, please add [SOLVED] to the start of this post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 26 guests