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 2008-03-27 13:02:10

timmix
Member
From: Hamburg // Lübeck
Registered: 2008-02-02
Posts: 20
Website

Mails as text instead of HTML?

Is it possible to switch alle mails/messages to textonly format instead of HTML?

Can't find any settings, but found the following in the "mailing.class.php":

    /**
     * Format the mail body to send
     * @param $format text or html
     * @param $sendprivate true if the email contains private followups
     * @return mail body string
     */

Where can I find the switch?

--
Timm

Offline

#2 2008-03-27 15:37:38

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mails as text instead of HTML?

Email are send in both format.

So your all mail client could read the mail send by glpi

You could test it in switching your configuration mail client to show only mail in text format.


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2008-03-27 19:00:48

timmix
Member
From: Hamburg // Lübeck
Registered: 2008-02-02
Posts: 20
Website

Re: Mails as text instead of HTML?

Ah, yes I see.

Ok, is It possible to send only the Textpart?

--
Timm

Offline

#4 2008-04-01 10:59:57

timmix
Member
From: Hamburg // Lübeck
Registered: 2008-02-02
Posts: 20
Website

Re: Mails as text instead of HTML?

Found it:

In ./inc/mailing.class.php near Line 500 change:

$mmail->Body=$this->get_mail_body("html",$private);
$mmail->isHTML(true);
$mmail->AltBody=$this->get_mail_body("text",$private);

to:

//$mmail->Body=$this->get_mail_body("html",$private);
$mmail->isHTML(false);
$mmail->AltBody=$this->get_mail_body("text",$private);

--
Timm

Offline

Board footer

Powered by FluxBB