You are not logged in.
Pages: 1
Hello,
I would like to create a rupture with 3 Carriage return on the mail when you created a new ticket.
This my code and after the result on a mail :
<p>##lang.ticket.title## : ##ticket.title##</p>
<p><br /><br /><br /></p>
<p>##lang.ticket.status## : ##ticket.status##</p>
There a blank on the first return (red arrow).
Could you give the better solution to correct this problem ?
Thanks for help
Offline
Can you post where you define the background?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
I define my background in Setup\Notifications\Notifications templates\ and I choose Tickets and I clic on Default translation.
I create my htlm code in Email HTML body.
I don't define CSS.
Offline
backgroung of a notification is white.
In your example you have blue background.
How do you define this in your HTML notification?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
It's not a background.
This is the selection with the mouse to show the problem.
Offline
OK.
You can't put several <br />
If you want space after <p> user le css like
<p style="margin-bottom:20px">##lang.ticket.title## : ##ticket.title##</p>
or
<p style="margin-bottom:20px">##lang.ticket.status## : ##ticket.status##</p>
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
It doesn't work.
I haven't carriage return beetwen the 2 lines.
Offline
But uou have space before or after your paragraphe.
Il you want several carriages, you must add with your <br />
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Could you show me an example ?
Offline
try this
<p>##lang.ticket.title## : ##ticket.title##<br /><br /><br /></p>
<p>##lang.ticket.status## : ##ticket.status##</p>
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
I already try this but when I save the modification glpi delete the <br />.
Offline
hi,
GLPI version ?
i tried with 0.83.8, it works.(i typed the tags in the translation, not by using the html editor button)
could you post the received email source ?
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
something new :
i tried with 0.84.5 and received the notification:
see the source below :
<p>Titre : test saut de ligne</p>
<p><br /><br /><br /></p>
<p>Statut : En cours (Attribué)</p></code></pre>
<p></p>
Reading te email with "MS outlook 2010" i can see these blanks.
if I paste the code into notepad, save as "test.html" and open with IE8 or chrome, i dont see these blanks.
I would say this is an outlook problem, not from GLPI.
Can you reproduce ?
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
Hello,
Here the email source :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html>
<head>
<META http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>[GLPI #0024011] Titre : Test_SMS </title>
<style type='text/css'>
</style>
</head>
<body><p>Titre : Test_SMS</p>
<p><br /><br /><br /></p>
<p>Statut : En cours (Attribué)</p><br><br>--
Glpi version: 0.84.3
I'm using Outlook 2007.
Offline
I confirm, if I copy your code (with </body></html> tags) in a test.htm file :
open with IE8 or FF : OK no blanks
Open with MS WORD 2010 (it is like outlook): there are blanks before <br/> !
this is not a glpi problem.
I wish I could help you more, I Knwow Why but I dont know how to solve... :-\
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
I tell my problem with my collegue of network IT and for him it's not a problem with outlook because we use an Exchange servor.
Offline
How does he explain that this single email is correctly displayed in IE and not in outlook 2007 ?
you also can see that the blank is not in the source.
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
Do you use an exchange servor or what system do you use to manage your email ?
Offline
Pages: 1