Welcome to the LimeSurvey Community Forum

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

Add an image to the email template

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178236 by DenisChenu
Replied by DenisChenu on topic Add an image to the email template
I'm on a instance inside subdiretory, then my HTML editor is broken (don't see file)
Code:
<img alt="" src="/upload/themes/survey/skelvanilla/files/poweredby.png" style="width:100px;height:auto"/>
Work like a charm : review your url

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.
More
5 years 3 months ago #178239 by rikatechdoku
Replied by rikatechdoku on topic Add an image to the email template

DenisChenu wrote: ...

Code:
<img alt="" src="/upload/themes/survey/skelvanilla/files/poweredby.png" style="width:100px;height:auto"/>
Work like a charm : review your url

ok, I will check again, THX for all the help!

I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
More
5 years 3 months ago #178240 by rikatechdoku
Replied by rikatechdoku on topic Add an image to the email template

holch wrote: ... As far as I know, Limesurvey Pro hosts on Linux (just as so many others).

Ok, thx, will have to be careful with that from now on.

I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
More
5 years 3 months ago #178261 by rikatechdoku
Replied by rikatechdoku on topic Add an image to the email template

rikatechdoku wrote:

DenisChenu wrote: ...

Code:
<img alt="" src="/upload/themes/survey/skelvanilla/files/poweredby.png" style="width:100px;height:auto"/>
Work like a charm : review your url

ok, I will check again, THX for all the help!

Just for the record:
I tried
1) <img alt="" src="/upload/themes/survey/skelvanilla/files/poweredby.png" style="width:100px;height:auto"><br>
2) <img alt="" src="/themes/survey/skelvanilla/files/poweredby.png" style="width:100px;height:auto">
(Copy & Pasted your line, Denis, and even created a theme with that exact name.)

In the case (1) the image is shown in the template editor, so the path must be right. However, in both cases no CID was created when sent as email. -> It is not displayed in the email.

I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178267 by DenisChenu
Replied by DenisChenu on topic Add an image to the email template

rikatechdoku wrote: …

In the case (1) the image is shown in the template editor, so the path must be right. However, in both cases no CID was created when sent as email. -> It is not displayed in the email.

Don't understand … no idea

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.
More
5 years 3 months ago #178268 by rikatechdoku
Replied by rikatechdoku on topic Add an image to the email template

DenisChenu wrote:

rikatechdoku wrote: …

In the case (1) the image is shown in the template editor, so the path must be right. However, in both cases no CID was created when sent as email. -> It is not displayed in the email.

Don't understand … no idea

ok, thx for reading and trying to help. it was still interesting.

I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
  • markusfluer
  • markusfluer's Avatar
  • Visitor
  • Visitor
5 years 3 months ago - 5 years 3 months ago #178337 by markusfluer
Replied by markusfluer on topic Add an image to the email template
EDITED:

Relative paths will only work on system resources and core themes.
Relative paths to survey files and user themes will not work.

We are working on a solution, but we're not there yet.
The issue is under investigation.
Last edit: 5 years 3 months ago by markusfluer. Reason: Wrongly informed
The topic has been locked.
More
5 years 3 months ago #178343 by rikatechdoku
Replied by rikatechdoku on topic Add an image to the email template
There is a working example in this thread with a relative path. -> It is ebedded as CID. Try it, please and check the resulting email code. Here is the beginning of my resulting email code, when I click in Outlook on "show source":
Code:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title></title>
</head>
<body>
<img alt="" height="100" src="cid:75d836d09a43439153fde034dda4dc4900ddee1092e7d9256499ee1b37429e52@phpmailer.0" width="100">
The image is displayed nicely. However, with an absolute path, it does NOT work to be emebedded as CID.

I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178357 by DenisChenu
Replied by DenisChenu on topic Add an image to the email template

markusfluer wrote: As written in the support tracker.
Don't use relative urls for embedding images in emails.
The relative endpoint is changing depending on the mailclient.

Why you say that !

It work if you set relative path to your system the image is not LINKED, it's EMBEDDED .

Don't put false information please …
See www.limesurvey.org/forum/design-issues/1...o-the-email-template it work !

@rikatechdoku : yes : GREAT point :)

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.

Lime-years ahead

Online-surveys for every purse and purpose