Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Advanced e-mail templates (HTML lay-out)

  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205691 by rencosch
Hi there,

a LimeSurvey expert designed an HTML e-mail template for me in order to send good-looking (HTML) e-mail invites, reminders etc. Since the editor has a toggle to source mode, I assumed you can put in whatever (correct) code you want.That indeed seems to be the case but the editor inserts countless <br /> tags into the code which renders it useless. Although the 2nd screenshot only shows a portion (mainly the <head>) of the code, I can confirm that the <br /> tag is added all through the code. In the <body> section of the code, the tag gets added within almost 50% of the code rules ('rows').

Was I mistaken about the possibilities of HTML formatted e-mail templates or is the editor not working properly? I've tried various browser to no avail.

Regards,
Ren
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205693 by tpartner
Replied by tpartner on topic Advanced e-mail templates (HTML lay-out)
LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205701 by rencosch
Replied by rencosch on topic Advanced e-mail templates (HTML lay-out)
I apologise. It's 4.3.14+200826.
The topic has been locked.
  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205702 by rencosch
Replied by rencosch on topic Advanced e-mail templates (HTML lay-out)
To clarify: the editor adds the <br /> tags upon saving the template.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205708 by DenisChenu
Replied by DenisChenu on topic Advanced e-mail templates (HTML lay-out)
I can not really confirm (on last GIT version)

But maybe you can set your preference to Source code editor.

I try to add broken HTML with sourcecode : it work.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205716 by rencosch
Replied by rencosch on topic Advanced e-mail templates (HTML lay-out)
Thanks for checking. I've set the HTML-editor mode to 'Sourcecode editor'. It has no effect: when I paste the correct HTML code into the sourcecode editor all goes well but after I save it, the editor adds the numerous <br /> tags.

Seems like a bug to me, but I'd expect more users to face this issue. Or perhaps it is not that common to use more advanced HTML markup for LimeSurvey e-mails?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205739 by DenisChenu
Replied by DenisChenu on topic Advanced e-mail templates (HTML lay-out)

rencosch wrote: Seems like a bug to me, but I'd expect more users to face this issue.

I think too : but i test on last version : i can not reproduce.

Maybe browser related ?
Or : update to the last version.

Maybe something other : XSS related ? manual.limesurvey.org/Global_settings#Security

But if you are not allowed to add script in survey, seems OK to be not allowed to add head in email.

Try login as super admin.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205771 by rencosch
Replied by rencosch on topic Advanced e-mail templates (HTML lay-out)
Hi Dennis, thanks for your suggestions. I've tried them all but unfortunately the problem remains.

I've tried various browsers
My account is already 'admin'
Changing the XSS options did not help (XSS filtering is always disabled for admin)
Updating to 4.3.17+200921 did not help.

So, a bug then? But then you should have been able to reproduce, right?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago - 3 years 6 months ago #205783 by DenisChenu
Replied by DenisChenu on topic Advanced e-mail templates (HTML lay-out)

So, a bug then? But then you should have been able to reproduce, right?

I think too, maybe some other difference …

BUT : i check again, and can reproduce …

Please : report, give the link here. I add a screencast.


Else : if possible, for production : setup a 3.X LTS version …


EDIT : in fact : add a <br /> each time you save it … not related to HTML header

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 3 years 6 months ago by DenisChenu.
The topic has been locked.
  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205792 by rencosch
Replied by rencosch on topic Advanced e-mail templates (HTML lay-out)
Thanks, I've opened up a bug report: bugs.limesurvey.org/view.php?id=16701
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #205802 by DenisChenu
Replied by DenisChenu on topic Advanced e-mail templates (HTML lay-out)
Thanks to you !

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • rencosch
  • rencosch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205811 by rencosch
Replied by rencosch on topic Advanced e-mail templates (HTML lay-out)
And to you for already contributing to this bug report!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose