View Full Version : Errors in E-mail Templates

August 15, 2012, 05:49 AM
Hi Flynax,

Would you please consider to fix errors in e-mail templates, when releasing new version 4.2
I found few broken links, grammar mistakes and other issues with coding.


August 15, 2012, 11:55 AM
Dear PGGO, :)

Could you please send list of corrections and mistakes you found through the ticket system or email support[at]flynax.com.
We would appreciate it

August 15, 2012, 10:39 PM
I would be happy to do so; however, I fixed all issues via Admin Panel and I’m not sure where the problems were.
You kind of may access my site, in order to see. I did changes few months ago, so I’m not sure what files were changed.

August 16, 2012, 09:27 AM
Ok, we will check the email templates grammar mistakes before the next release. If anybody found something to correct, it's highly appreciated if you can share it. Better in ticket

Athanasios Christou
October 28, 2013, 01:50 AM

when an email is sent by the system Flynax V4.1.0
(Email template example key: remind_password_request define as HTML)
so that the received email looks very funny.

Each line has a <br /> at the beginning.

Example of a received e-mail from Outlook source code:


<br /><body>
<br /><div align="center" style="width: 100%;">
<br /><table border="0" cellpadding="0" cellspacing="0" width="600">
<br /> <tbody>
<br /> <tr>
<br /> <td align="left" bgcolor="#ffc000" style="background-color: rgb(255, 108, 0);" valign="top">
<br /> <table border="0" cellpadding="0" cellspacing="0" width="100%">
<br /> <tbody>
<br /> <tr>
<br /> <td align="left" valign="top" width="13"></td>
<br /> <td align="left" valign="top" width="465">
<br /> <table border="0" cellpadding="0" cellspacing="0" width="100%">
<br /> <tbody>
<br /> <tr>
<br />


Please help to fix.

Best greetings


Petrache Nicolae
May 26, 2014, 04:43 AM
this bug exists in 4.3

Wei Hong
June 20, 2014, 09:57 PM
Hi Athanasios,

Did you manage to fix this html email thing?

Athanasios Christou
June 22, 2014, 02:13 PM

I hope for a solution from Flynax team.

Wei Hong
June 23, 2014, 01:06 AM
I see. I have submit a ticket a couple days ago. Hopefully it will be fixed, and I will share the fix here.

Wei Hong
June 24, 2014, 03:33 AM
I have been working on fixing this html email template bug and been providing intel that I learned through ticket system. Today I found a youtube video that address this very problem from a guy last year.


July 28, 2014, 11:26 AM

In this post I want give you a solution to the space issue found in E-mail templates:

1. If you got spaces after editing the template from the admin panel; then you should do the following:

- open file your_admin_directory/js/lib.js
- go to method switchContentType
- find this code

code = code.replace(nl_pattern, '<br />');
and replace it to:

// code = code.replace(nl_pattern, '<br />');

2. If extra spaces are added when sending messages then do the the following:

- open file includex/classes/rlMail.class.php
- go to method replaceVariables
- find this code:

$mail_tpl['body'] = str_replace(PHP_EOL, '<br />', $mail_tpl['body']);
and replace it to:

if($mail_tpl['Type'] == 'plain')
$mail_tpl['body'] = str_replace(PHP_EOL, '<br />', $mail_tpl['body']);