D-Mack Media Forums

Full Version: Formatting Problem in Custom Intro Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Don,

The following requires some investigation and fix: If either or both of the two "Use HTML Code" check boxes are ticked, then any paragraph formatting in the Custom Intro Message will be lost when it is sent out via email, even if the Custom Intro Message appears as intended in the "Custom Intro Message" field as well as the "Customized Admin Message (if used)" field of the D-Mack RecommendFriends Email Preview area at the back end of Joomla. The email recepient(s) will see the whole Custom Intro Message appearing as one monolithic paragraph in the email even if the original version has multiple paragraphs at the back end of Joomla.

Hopefully, this problem can be solved even if it is the side effect of the emails being sent in the Content-Type:text/html MIME format.

Thank you.
Another good catch SoundEagle!

I will look into this and post back soon.
Hi Don,

In addition, you might want to consider testing the Custom Intro Message with some HTML codes.
If you select the 'Use HTML Code' checkbox in Admin for the Custom Message, then you are correct, the component strips out all line breaks - as well as white space - when the config is saved.

When using HTML, you must include full HTML formatting code. Remember that there is not a CSS style sheet that gets sent with the email! It is actually good practice to include in-line styles for emails (some email clients will strip out any styling other than in-line). Some of the formatting you can use includes:
The other formatting you will need to include are the specific line breaks you need such as:

Code:
<p>text</p> and/or <br />


Note that you should ** NOT ** use any of the following tags:

Code:
<html>, </html>, <head>, </head>, <body> or </body>

PHP and Javascript are also NOT allowed.

I will update the instructions on the Front End and Admin in the next version of the Component to make this much clearer.

I have also done some further testing and the HTML codes seems to work for me when sending emails.

Reference URL's