Post by billynoah » Mon Jun 09, 2014 11:37 am

A client of mine was having problems with some multibyte characters turning html emails into a corrupted mess - especially on mobile devices. This vQmod base encodes the html email which solved our problem and seems to keep everything consistently intact during mail transfer. Tested on 1.5.6.1+:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<modification>

	<id>base64 encode mail</id>
	<version>1.3</version>
	<vqmver>2.4</vqmver>
	<author>billynoah@gmail.com | zuma-design.com</author>
	
	<file name="system/library/mail.php">
		<operation>
			<search position="replace"><![CDATA[$this->html = $html;]]></search>
			<add><![CDATA[$this->html = chunk_split(base64_encode($html));]]></add>
		</operation>
		<operation>
			<search position="replace" index="3"><![CDATA[8bit]]></search>
			<add><![CDATA[base64]]></add>
		</operation>
	</file>
	
</modification>

Image


User avatar
Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm
Who is online

Users browsing this forum: No registered users and 3 guests