By Greg Correll on Friday, 21 November 2014
Posted in General Issues
Likes 0
Views 1K
Votes 0
Hi Stackideas!

EasyDiscuss won't send formatted HTML emails to Discussion subscribers.
No matter what changes we make to settings, EasyDiscuss notifications (for both Category posts AND replies) don't show the HTML formatted emails.
Some settings info:

Using v latest EasyDiscuss and Joomla and all addons.
HTML email formatting is YES.
Switched from bbcode to JCE in both posts and replies (no effect).
Theme is Simplistic.
Category "eNewsletters" used for testing subscriptions— got email but no HTML in it.
ACL is fine we think.
Cron seems to be working fine.

To be clear: the email shows "run-on" plain text. (see attached image; shows we successfully added the "reply text break" ~~~~~ ,so this seems to be the correct email template files set)

(Site log-in info provided below)

(Since I'm waiting for one of your semi-regular discounts to re-up my EB license I can't ask a similar question in EB forums—EB sends formatted, but does not send new Post email!)
Hello Greg,

Yes, ED will not send HTML formatted to users because we have strip off the html tags before send the email. if you want to remove the strip_tags, you can copy the attached file and replace it here: ../components/com_easydiscuss/controllers/posts.php. This only take effect if you are using other than BBCode editor.
·
Friday, 21 November 2014 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nick, for the quick response.

We had partial success with your new file: SuperUsers who subscribed to the category got a correctly formatted HTML email.

But a Registered user tester ("bbob") got a crudely formatted email with BR and P tags but nothing else, no CSS, image, bold/italic, or any other formatting.

We checked all aspects of JCE to ensure settings and permissions were correct, and they seem to be all good.
We adjusted a few things that looked likely, such as the 'Permit CSS' setting for that Editor Profile in JCE, but no joy.
We also tested TinyMCE as WYSI, no joy.
We changed the ED theme from Simplistic to Timeless, no joy.
We turned on email parser for the category, no joy.

Obviously we are thrashing here. Does the modified PHP file you sent need a change to permit a post made by a Register level User to be sent as an HTML-format email?

Thanks in advance—and apologies in advance if we are missing some obvious thing we should have seen!

All the best

Greg

[EDIT: the file you gave us DOES improve the emails from run-on (no formatting) to simple br and p tags, reliably ]

[EDIT 2: now the super user that posted "t 9" in "eNewsletters" category, which previously was our only pure success, cannot post as intact HTML either, using the same JCE editor profile and ED theme that was successful earlier today]
·
Saturday, 22 November 2014 03:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Greg,

Correct me if I'm wrong, the file only works for superuser? It is supposed to work for all users as well. Can you provide us your FTP access so we can have a better look on your issue here?
·
Saturday, 22 November 2014 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
My apologies, it was the weekend. I appreciate the quick reply!

Yes, SU DID work ONCE, then stopped. After ONE SU post — it sent email out with full formatting —it has stopped working for ALL User types.

We ARE seeing plain HTML now (br and p tags, so no run-on anymore as was in screen capt above) in all emails posted by all User types. This is why we tested so many aspects of third-party errors (JCE); we thought perhaps ED was working and certain tags were being stripped by WYSI, etc.

We would like it to work for any/all Users. Ideal is User Level(s) we designate, but if set to all that's a-okay.

I've added access info, and pre-tested those SU login and ftp logins.

Thanks!

Greg
·
Monday, 24 November 2014 22:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Greg,

Sorry for the late reply. I've fixed it for you. I've tested it and I received HTML formatted email: http://screen.stackideas.com/2014-11-25_1305.png . However, we did the trim html tag previously is to avoid html break in your email template. Without the trim, possibility to break the email template is high.
·
Tuesday, 25 November 2014 13:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik

Thanks again for the quick responses and the work you did.

Unfortunately we still see the complex HTML issue. (see attached images)


In the test you did we see BOLD formatting.
In two subsequent tests we see that images etc do not come through.
We also provide an example of an EasyBLOG email that came in correctly.


We're in the states so we are about to go into Thanksgiving (and a foot of snow! yikes!) so we might not respond until Friday.

(Not sure from your comment if we are to take further steps about adjusting "trim", or how)

All the best

Greg
·
Wednesday, 26 November 2014 03:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Greg,

I am sorry for the delay of this reply.

Regarding your issue with image not showing, it was because your Joomla editor JCE was set to use 'relative' path. I've reconfigure your JCE profiles ( both default and frontend ) on the editor parameters, I've set 'No' to 'user relatiave path' setting.

Also, to display properly the styling on your html content, I've made some amendment on the file 'JOOMLA/components/com_easydiscuss/themes/simplistic/emails/email.template.html.php' and now when you write new discussion post, your email content should display correctly. Please see:

http://screen.stackideas.com/2014-11-27_1234.png

Can you give it a try again?
Hope this help and have a nice day
Sam
·
Thursday, 27 November 2014 12:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Looks good!

I love how you and Stackideas staff are so polite and reliably civil in your communications.

We saw you really worked at this. I hope it will help others; JCE is quite popular, so I guess it will.

We appreciate how much effort you put in. Thank you, Nik!
·
Tuesday, 02 December 2014 07:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Greg,

You are most welcome and glad to hear the fix worked for you
Have a nice day
Sam
·
Tuesday, 02 December 2014 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post