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 2009-10-13 19:18:59

andremta
Member
Registered: 2009-10-12
Posts: 6

Change Email Subject

Hello,

The Email subject for my helpdesk tickets are something like:

[GLPI #0000004] New ticket - some issue description



How can I change this? For example to:

[Ticket #0000004] New ticket - some issue description

Last edited by andremta (2009-10-13 19:19:38)

Offline

#2 2009-10-13 19:36:07

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Change Email Subject

You can't.

If you change this (in the code) you will break followup by mail feature which use the subject to detect ticket number.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2009-10-13 19:38:34

andremta
Member
Registered: 2009-10-12
Posts: 6

Re: Change Email Subject

Ok, so this could be a feature request.

Offline

#4 2009-10-13 19:49:45

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Change Email Subject

> Ok, so this could be a feature request.

I don't think GLPI dev.  really consider this as a feature wink

Have you ask Micrsoft to change "Microsoft Word" to "Something else" ?

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2009-10-13 19:55:11

andremta
Member
Registered: 2009-10-12
Posts: 6

Re: Change Email Subject

remi wrote:

> Ok, so this could be a feature request.

I don't think GLPI dev.  really consider this as a feature wink

Have you ask Micrsoft to change "Microsoft Word" to "Something else" ?

+

Instead, they could have another GLPI reference in the Email's footer instead of the Email's subject.


For regular users "GLPI" doesn't mean anything, "Ticket" or "Helpdesk" is more meaningful.

Offline

#6 2009-11-04 23:57:30

heal
Member
From: Gainesville FL USA
Registered: 2009-07-27
Posts: 9

Re: Change Email Subject

Although remi is right in that if you change the subject it can cause issues for existing tickets. Going forward it will work. So if you have a new system, now would be the time to change it and here is how to do that.

How to edit the body of the email sent out for tickets that are new, follow ups, etc.
1. Open /var/www/glpi/inc/tracking.class.php for edit
2. Navigate to line 949. This is the beginning of the html email
3. The variable '$message' is used to create the body of the email
   * The form $message.="blah blah blah" is used to concatenate the '$message' variable to form the email body. So to add something to an existing line simply remove the newline charactor at the end of the line (leaving the semi-colon), begin a new line with '$message.=' and complete your edit.
4. All variables of the form $LANG['xxxxx'][##] can be found in the file /var/www/glpi/locales/en_GB.php. This is a list of titles used throughout GLPI.
5. When you have completed your edits, save and close tracking.class.php.

How to edit the email 'subject'
1. Open /var/www/glpi/inc/mailing.class.php for edits
2. Navigate to line 490. This is the beginning of the building of the email 'subject'
3. The line (about 495) with 'sprintf' contains most of the email subject.
4. The format of this command is ( format,string,string)
%s%04d%s is the format,. Where %s means a string value and %04d means an integer value starting at '0' and going for '4' numbers
5. As in the body of the email, the subject is concatenated using $subject.="blah blah blah".


GLPI 0.72.21 - OCS 1.02
Ubuntu 9.04 - php 5.2.6 - MySQL 5.1.31 - apache2 2.2.11

Offline

#7 2009-11-05 16:24:36

andremta
Member
Registered: 2009-10-12
Posts: 6

Re: Change Email Subject

Thanks for you reply!

I don't use GLPI as mail fetcher, so I guess I'm not going to have problems if I change the subject?

Offline

#8 2009-11-05 19:38:02

laubac
Member
Registered: 2009-11-05
Posts: 19

Re: Change Email Subject

I would tend to agree with andremta: even if sys admins love glpi, it doesn't mean anything to end users
I'd rather have "helpdesk" instead of GLPI in the mail subject.

Offline

#9 2015-02-26 19:32:38

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Change Email Subject

Is there a simple and upgrade stable way today ?

For regular users "GLPI" doesn't mean anything, "Ticket"  is more meaningful. This is my opinion too.


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#10 2015-03-02 17:08:50

MEI-IT
Member
From: Evansville, Indiana, USA
Registered: 2013-08-08
Posts: 104

Re: Change Email Subject

KKAdmin,

This is now built in to GLPI. Go to Administration > Entities, then select your Entity you want to change (You have to do it for each entity change). Choose Notifications > Prefix for notifications. Here, you can change your email from [GLPI #12345] to [My Super Helpdesk #12345] or whatever your heart desires!


GLPI v0.84.6 - Ubuntu 12.04 - PHP 5.3.10-1 - Apache 2.2.22 - MySQL 5.5.37
~100 users - ~120 PCs - ~80 servers

Offline

#11 2023-06-27 13:43:45

Doppler
Member
Registered: 2023-06-08
Posts: 4

Re: Change Email Subject

Hello,

I have a problem with the Prefix for notifications (yes 8 years later lol)

I change it, it works, but all of my other modifications doesn't works ...

I change the default configuration (wich was GLPI) to another word, and i want to remove my modification but it doesn't work.

I'm stuck ...

My version is GLPI 10.0.6

Thanks you very much

Offline

Board footer

Powered by FluxBB