You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2013-11-04 23:47:52

alessandro.businaro
Member
From: Milano
Registered: 2013-11-04
Posts: 6

Image on notification template

Hi Guys,
I've created a new template with tables, and it works ok. Now i want to insert a logo on a column. I've tryed with <img src="pics/fd_logo.png" alt="" width="70" height="70" /> for example...but i cannot see the logo.
I used also <img src="/opt/glpi/pics/fd_logo.png" alt="" width="70" height="70" /> (I've installed glpi on opt/glpi).

I'm using Debian on raspberry Pi.

Thanks in advance.

Offline

#2 2013-11-05 00:38:32

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Image on notification template

Better solution is to use base64 image (many tuto in internet)

Offline

#3 2013-11-05 12:40:55

alessandro.businaro
Member
From: Milano
Registered: 2013-11-04
Posts: 6

Re: Image on notification template

Thank you ssooooooo much!.. It works!..

Offline

#4 2015-11-26 22:28:14

fmercurio
Member
Registered: 2015-11-26
Posts: 10

Re: Image on notification template

Hi Alessandro,

Wich version of GLPI are you using?

I´m trying to put images Base64 in my e-mail notifications but it still broked.

I´m usgin the <img src="data:image/png;base64,iVBORw0KGgoA...">  tag but it doesn´t work.

Any clue?

Offline

#5 2015-11-27 00:36:05

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Image on notification template

if you are using MS outlook as mail client, it won't display base 64 images.
this is a known outlook issue.


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#6 2015-11-27 01:19:55

fmercurio
Member
Registered: 2015-11-26
Posts: 10

Re: Image on notification template

Hi LaDenrée!

I'm doing tests sending to MS Outlook clients and Gmail clients client, in both clients the error is the same.

The SMTP server responsible to send emaiks on behalf of GLPI is the same, an Office 365 Mail Server.

Offline

#7 2015-11-27 09:46:37

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Image on notification template

the error is the same.

can you describe error ?

do you receive notifications ?
do you  see images ?

do you use url or base64 for images ?


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#8 2015-11-27 13:02:53

fmercurio
Member
Registered: 2015-11-26
Posts: 10

Re: Image on notification template

the error is a broken image.

yes, I receive the notifications normaly, but without images.
no, I´m not seeing images on e-mail notifications, just "broken images icons".

yes, I´m using a base64 image (like this:  <img src="data:image/png;base64,iVBORw0KGgoA..."> )

Offline

#9 2015-11-27 14:57:59

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Image on notification template

if you copy source code from received email ans paste in a html file,$ : is it ok?


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#10 2015-11-27 15:02:43

fmercurio
Member
Registered: 2015-11-26
Posts: 10

Re: Image on notification template

Yes!

When I save the html code embedded in the e-mail, the images appear ok.

Offline

Board footer

Powered by FluxBB