Post by lankylad » Tue Sep 17, 2024 1:37 am

I'm a Debian 11 user with Opencart 3.0.3.2 and PHP version 7.4.33

Unfortunately generated emails e.g. Password Reset, are arriving completely unformatted ie just a string of text with no spaces, line feeds or hyperlinks. Is this a known problem?

New member

Posts

Joined
Fri Nov 01, 2019 5:11 pm

Guru Member

Posts

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

Post by paulfeakins » Fri Sep 20, 2024 7:38 pm

lankylad wrote:
Tue Sep 17, 2024 1:37 am
I'm a Debian 11 user
On your desktop or the server that's hosting the site?

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


User avatar
Guru Member
Online

Posts

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

Post by lankylad » Tue Sep 24, 2024 1:26 am

paul feakins both locally and at the hosting company

New member

Posts

Joined
Fri Nov 01, 2019 5:11 pm

Post by lankylad » Tue Sep 24, 2024 1:31 am

ADD Creative - unfortunately, the link that shows the fix no longer exists!

https://www.free-time-info.com/en/how-t ... -0-x.html/

New member

Posts

Joined
Fri Nov 01, 2019 5:11 pm

Post by lankylad » Tue Sep 24, 2024 1:56 am

Found the correc t link:

https://www.free-time-info.ro/how-to-fi ... -0-x.html/

but it didnt fix the problem.. :(

New member

Posts

Joined
Fri Nov 01, 2019 5:11 pm

Post by by mona » Tue Sep 24, 2024 2:12 am

Both links ADD Creative work and are not the same as the link you provided.
Maybe try again following the correct links Add Creative's provided?

https://github.com/opencart/opencart/issues/7997
viewtopic.php?f=199&t=228129

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by lankylad » Tue Sep 24, 2024 8:00 pm

OK thanks.

I have:

1. Updated to twig 3.0 using composer
2. Changed system/library/template/twig/lexer.php line 162 to


if (isset($this->positions[2][$this->position][0]) && ($this->options['whitespace_trim'] === $this->positions[2][$this->position][0])) {
$text = rtrim($text);

But still have the problem. This is what my password reset email looks like, but as text rather than hyperlink (added by this posting):

A new password was requested for Your Store customer account.To reset your password click on the link below:http://localhost/opencart/index.php?rou ... z1nYK8rThe IP used to make this request was:127.0.0.1

New member

Posts

Joined
Fri Nov 01, 2019 5:11 pm

Post by by mona » Tue Sep 24, 2024 8:55 pm

We can not see the attachment/link because it is on localhost.

If this is not working for you
- more information is needed
- the site to test
- or a developer to look at it

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by lankylad » Tue Sep 24, 2024 9:23 pm

Thanks Mona, I was just showing what the email looks like rather than expecting it to work.

New member

Posts

Joined
Fri Nov 01, 2019 5:11 pm

Post by ADD Creative » Wed Sep 25, 2024 4:27 pm

lankylad wrote:
Tue Sep 24, 2024 8:00 pm
OK thanks.

I have:

1. Updated to twig 3.0 using composer
2. Changed system/library/template/twig/lexer.php line 162 to
You only need to one of those, not both. Make sure your clear the template cache, modifications, etc.

www.add-creative.co.uk


Guru Member

Posts

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

Users browsing this forum: No registered users and 18 guests