- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to add css rules in the invitation email head-tag?
- ramon01
- Topic Author
- Offline
- New Member
Less
More
8 years 10 months ago - 8 years 10 months ago #121403
by ramon01
How to add css rules in the invitation email head-tag? was created by ramon01
Hi,
where can i add some css rules into the HTML mail head-tag. The Editor only add the part for the body-tag.
The invitation mail i get into my inbox has a source code like this:
Where can i change this part:
Greetings
Ramon
where can i add some css rules into the HTML mail head-tag. The Editor only add the part for the body-tag.
The invitation mail i get into my inbox has a source code like this:
Code:
<html> <head> <title></title> </head> <body> . . - </body> </html>
Code:
<head> <title></title> </head>
Ramon
Last edit: 8 years 10 months ago by ramon01.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
8 years 10 months ago #121406
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to add css rules in the invitation email head-tag?
As far as I know, you cannot modify that without hacking the core code.
Regardless, not all email clients respect styles in the <head> element - it's safer to use inline styles.
Regardless, not all email clients respect styles in the <head> element - it's safer to use inline styles.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
8 years 10 months ago #121407
by DenisChenu
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.
Replied by DenisChenu on topic How to add css rules in the invitation email head-tag?
Hi,
I already used sometimes css in head. I use "HTML editor in popup" and this for example:
But like Tony say, it's not garanted, it work on Thunderbird and Outlook (some version).
Denis
I already used sometimes css in head. I use "HTML editor in popup" and this for example:
Code:
<html><head><style>a{color:red}</style></head><body style="color:green"> You text </body></html>
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.
- ramon01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
8 years 10 months ago #121408
by ramon01
Replied by ramon01 on topic How to add css rules in the invitation email head-tag?
Thanks for your reply,
i have a mail template that is testet with the major Mail Clients and need the head for media querys. I will try the Editor in Popup mode, in inline mode it was not possible to add the head tag.
Greetings
Ramon
i have a mail template that is testet with the major Mail Clients and need the head for media querys. I will try the Editor in Popup mode, in inline mode it was not possible to add the head tag.
Greetings
Ramon
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
8 years 10 months ago #121410
by DenisChenu
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.
Replied by DenisChenu on topic How to add css rules in the invitation email head-tag?
Hi,
With some PHP competences, i think you can do a plugin using manual.limesurvey.org/BeforeTokenEmail for this. A good idea for a plugin.
Denis
With some PHP competences, i think you can do a plugin using manual.limesurvey.org/BeforeTokenEmail for this. A good idea for a plugin.
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.
- ramon01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
8 years 10 months ago #121469
by ramon01
Replied by ramon01 on topic How to add css rules in the invitation email head-tag?
Hey,
@Denis, yes a Plugin is the best Option, i would try to make a Plugin for that. Are there some other resources to get start faster with the plugin Develoment? Some small Demo-Plugins or Tutorials? Your sendMailAjax is a little to complex to start i think.
@all, I've try to manage the problem in the Editor in Popup Mode and the system interprets the
CSS-Brackets as Placeholders . Is there a workaround to mask the CSS-Brackets? Because the 'Popup Editor Solution' woud be enough for the first Step.
Thanks
Ramon
@Denis, yes a Plugin is the best Option, i would try to make a Plugin for that. Are there some other resources to get start faster with the plugin Develoment? Some small Demo-Plugins or Tutorials? Your sendMailAjax is a little to complex to start i think.
@all, I've try to manage the problem in the Editor in Popup Mode and the system interprets the
Code:
{ }
Thanks
Ramon
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
8 years 10 months ago #121470
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to add css rules in the invitation email head-tag?
Insert a space or line-break after the opening brace and before the closing brace.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
8 years 10 months ago - 8 years 10 months ago #121471
by DenisChenu
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.
Replied by DenisChenu on topic How to add css rules in the invitation email head-tag?
I don't think there are already a public plugin using this event.
But something like:
Can do the trick.
But something like:
Code:
$message=$this->event()->get("body"); $body="<html>......<body>".$message."</body></html>"; $this->event()->set("body",$body);
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: 8 years 10 months ago by DenisChenu.
The topic has been locked.
- ramon01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
8 years 10 months ago #121472
by ramon01
Replied by ramon01 on topic How to add css rules in the invitation email head-tag?
@tpartner: nice that works
@denis: ok, that looks fine.
Thanks
@denis: ok, that looks fine.
Thanks
The topic has been locked.