News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Virtuemart mail function sets incorrect mail subject

Started by philip_sorokin, October 28, 2022, 03:21:27 AM

Previous topic - Next topic

philip_sorokin

Hello.

VirtueMart 4.0.6 10690, Joomla! ‎4.2.4

In older VM version this problem does not exist.

File: /components/com_virtuemart/helpers/shopfunctionsf.php
Line 877:

'=?utf-8?B?'.base64_encode($subject).'?='

If you use PHP MAIL for sending emails, this code breaks the subject, because you are trying to hack PHPMailer wrapper, which does the same. Actually, Using the Joomla! mailer, you do not have to encode the subject. The Joomla mail wrapper does this work by itself. Please, fix this bug, because with this code I have mail subjects in my inbox like: =?utf-8?B?0J3QvtCy0YvQuSDQt9Cw0LrQsNC3IFs5MzIwXTog0LrQu9C40LXQvdGCINCi0LXRgdGCIOKAkyDRgdGD0LzQvNCwIDI1NDAwINGA0YPQsQ==?=

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

philip_sorokin