Welcome, Guest
Username: Password: Remember me

TOPIC: Email template

Email template 2 years 9 months ago #63461

  • robshim
  • robshim's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 1
  • Karma: 0
Hi,
Have to say this is one of the best open source applications I have come across. I am using it as a web form, not a survey, and it works just as well.

My question: How to I change the format of the email notification template? I am editing the .printouttable style from the template CSS but it is not making any changes. Using view source on the email shows that the changes are not being applied to the email.

Many thanks,

Rob
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63474

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3844
  • Thank you received: 690
  • Karma: 330
Survey properties --> Email templates

Capture_2011-07-13.JPG
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63497

  • robshim
  • robshim's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 1
  • Karma: 0
Thanks, but that was not what I was looking for.
I have had a comment that the email sent out with the answers is hard to read. I need to be able to edit the CSS of the email. You can see it below, (right click on the email), but I can't seem to change it. Changes I make to '.printouttable' in the style sheet are not being applied to the email?

Thanks,
Rob

<style type="text/css">
..printouttable {
margin:1em auto;
}
.printouttable th {
text-align: center;
}
.printouttable td {
border-color: #ddf #ddf #ddf #ddf;
border-style: solid;
border-width: 1px;
padding:0.1em 1em 0.1em 0.5em;
}

.printouttable td:first-child {
font-weight: 700;
text-align: right;
padding-right: 5px;
padding-left: 5px;

}
.printouttable .printanswersquestion td{
background-color:#F7F8FF;
}

.printouttable .printanswersquestionhead td{
text-align: left;
background-color:#ddf;
}

.printouttable .printanswersgroup td{
text-align: center;
font-weight:bold;
padding-top:1em;
} </style>
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63500

  • Ben_V
  • Ben_V's Avatar
  • NOW ONLINE
  • Platinum Lime
  • Posts: 941
  • Thank you received: 195
  • Karma: 63
.printouttable' in the style sheet are not being applied to the email?

No.. this css class set the {ANSWERTABLE} (to print the answers) and has no effect here...

What you can do easily is to allow HTML emails (show bottom of the sreenshot) and change your layout (for each survey) using the source mode of the editor

html.gif
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 2 years 9 months ago by Ben_V.
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63506

  • robshim
  • robshim's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 1
  • Karma: 0
Thanks benitov. So I go to Template editor > select Template > then what Screen (page) would I select?
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63509

  • Ben_V
  • Ben_V's Avatar
  • NOW ONLINE
  • Platinum Lime
  • Posts: 941
  • Thank you received: 195
  • Karma: 63
Nothing to touch into your template !
1) turn html email on (preferences settings of your survey)
2) edit the source of your confirmation email using HTML and embeded CSS around {LS_placeholders}
source.gif

WYS.png
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 2 years 9 months ago by Ben_V.
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63517

  • robshim
  • robshim's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 1
  • Karma: 0
ah! gotcha . . . sorry for being so dim, thanks!
The administrator has disabled public write access.

Re: Email template 2 years 9 months ago #63520

  • Ben_V
  • Ben_V's Avatar
  • NOW ONLINE
  • Platinum Lime
  • Posts: 941
  • Thank you received: 195
  • Karma: 63
No matter...you're Welcome
Benoît
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.111 seconds
Donation Image