VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: bockey on December 09, 2022, 13:40:45 PM

Title: Strange characters in email subject
Post by: bockey on December 09, 2022, 13:40:45 PM
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
Title: Re: Strange characters in email subject
Post by: jenkinhill on December 09, 2022, 14:55:32 PM
That bug was squashed some time ago. VM4.0.10 has now been released.  See on http://dev.virtuemart.net/projects/virtuemart/files