Post by jasonrf » Sat Oct 29, 2022 8:54 am

Hi,

My opencart website has seemed to have recently lost it. I haven't recently changed anything or done anything to the website but have started getting unreadable emails.

When a customer places an order it comes up with this:

------=_NextPart_edc7f80f817c04ba205a2de46bafd4a8
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

WW91IGhhdmUgcmVjZWl2ZWQgYW4gb3JkZXIuCgpPcmRlciBJRDogMzYxCkRhdGUgQWRkZWQ6IDI4LzEwLzIwMjIKT3JkZXIgU3RhdHVzOiBQcm9jZXNzaW5nCgpQcm9kdWN0cwoKMXggSVBBIChGZW4td2lja3MgQmVlciBLaXRzKSBSNDUwLjAwClRvdGFscwoKU3ViLVRvdGFsOiBSNDUwLjAwClBpY2t1cCBGcm9tIFN0b3JlOiBSMC4wMApUb3RhbDogUjQ1MC4wMAogIAo=
------=_NextPart_edc7f80f817c04ba205a2de46bafd4a8--

Anyone know what to do or what could've caused this?

Thank you
Last edited by jasonrf on Mon Oct 31, 2022 8:36 am, edited 1 time in total.

Newbie

Posts

Joined
Mon Jun 08, 2020 10:08 pm

Post by ADD Creative » Sat Oct 29, 2022 9:49 pm

It would be helpful to provide more information, such as OpenCart version, PHP version and what mail settings you are using.

The problem you describe could be caused by PHP 8.
https://github.com/opencart/opencart/pull/10539

www.add-creative.co.uk


Expert Member

Posts

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

Post by johnp » Sun Oct 30, 2022 2:29 am

Check if your host has done a PHP upgrade to 8.00 or 8.1. I've had the same problem. On PHP 8.1 Mail causes the problem but SMTP works fine.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by jasonrf » Sun Oct 30, 2022 8:40 pm

ADD Creative wrote:
Sat Oct 29, 2022 9:49 pm
It would be helpful to provide more information, such as OpenCart version, PHP version and what mail settings you are using.

The problem you describe could be caused by PHP 8.
https://github.com/opencart/opencart/pull/10539
Sorry about that! Still new to Opencart and learning
Opencart version 3.0.38
Mail settings: Mail

Let me know if this helps. Sorry if it's not what you want

Newbie

Posts

Joined
Mon Jun 08, 2020 10:08 pm

Post by jasonrf » Sun Oct 30, 2022 8:45 pm

johnp wrote:
Sun Oct 30, 2022 2:29 am
Check if your host has done a PHP upgrade to 8.00 or 8.1. I've had the same problem. On PHP 8.1 Mail causes the problem but SMTP works fine.
Thanks I will do.
Was it difficult to setup SMTP for mail?

Newbie

Posts

Joined
Mon Jun 08, 2020 10:08 pm

Post by johnp » Sun Oct 30, 2022 9:00 pm

jasonrf wrote:
Sun Oct 30, 2022 8:45 pm
Thanks I will do.
Was it difficult to setup SMTP for mail?
It's easy. You need a working email account though.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by ADD Creative » Mon Oct 31, 2022 12:15 am

jasonrf wrote:
Sun Oct 30, 2022 8:40 pm
ADD Creative wrote:
Sat Oct 29, 2022 9:49 pm
It would be helpful to provide more information, such as OpenCart version, PHP version and what mail settings you are using.

The problem you describe could be caused by PHP 8.
https://github.com/opencart/opencart/pull/10539
Sorry about that! Still new to Opencart and learning
Opencart version 3.0.38
Mail settings: Mail

Let me know if this helps. Sorry if it's not what you want
You don't state your PHP version, But I'm guessing it's 8 or above. Use SMTP as the mail engine or use the latest mail.php file. https://github.com/opencart/opencart/bl ... l/mail.php

www.add-creative.co.uk


Expert Member

Posts

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

Post by jasonrf » Mon Oct 31, 2022 8:35 am

ADD Creative wrote:
Sat Oct 29, 2022 9:49 pm

You don't state your PHP version, But I'm guessing it's 8 or above. Use SMTP as the mail engine or use the latest mail.php file. https://github.com/opencart/opencart/bl ... l/mail.php
Updated the mail.php file and it works now.
Thank you very much!

Newbie

Posts

Joined
Mon Jun 08, 2020 10:08 pm
Who is online

Users browsing this forum: No registered users and 168 guests