News:

Support the VirtueMart project and become a member

Main Menu

Strange characters in email subject

Started by bockey, December 09, 2022, 13:40:45 PM

Previous topic - Next topic

bockey

Hello,

I get strange subject of my "order status change" confirmation email. It happens when I use either default VM emails or specific email management component (such VP Email Manager).

Subject looks like this =?utf-8?B?UG90dnJkYSBwb3J1ZMW+YmluZSB7IG9yZGVyX251bWJlciB9?= while email body looks fine. I believe that somehting is wrong with subjec encoding, because it happens when shop variable is added to subject (such { order_number })

Is there any way to solve this?

UPDATE:

THis code DOESN'T work for me  >:(

$subjectMailer= '=?utf-8?B?'.base64_encode($subject).'?=';
if(function_exists('mb_decode_mimeheader')){
$subjectMailer= mb_decode_mimeheader($subjectMailer);
}


Joomla 4
Virtuemart 4.0.4
php 7.4

jenkinhill

That bug was squashed some time ago. VM4.0.10 has now been released.  See on http://dev.virtuemart.net/projects/virtuemart/files
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum