Subversion Repositories eFlore/Applications.del

Rev

Rev 1720 | Rev 1722 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1720 Rev 1721
Line 54... Line 54...
54
		$entetes = "X-Sender: <http://www.tela-botanica.org>\n".
54
		$entetes = "X-Sender: <http://www.tela-botanica.org>\n".
55
			"X-Mailer: PHP-DEL-SCRIPTS\n".
55
			"X-Mailer: PHP-DEL-SCRIPTS\n".
56
			"X-auth-smtp-user: $emailExpediteur\n".
56
			"X-auth-smtp-user: $emailExpediteur\n".
57
			"X-abuse-contact: $emailExpediteur\n".
57
			"X-abuse-contact: $emailExpediteur\n".
58
			"Date: $dateHeure\n".
58
			"Date: $dateHeure\n".
59
			"From: $emailExpediteur\n\n";
59
			"From: $emailExpediteur\n".
-
 
60
			"Content-Type: text/plain; charset=UTF-8\n";
Line 60... Line 61...
60
 
61
 
61
		// le message en html est préféré s'il est lisible
62
		// le message en html est préféré s'il est lisible
Line 62... Line 63...
62
		$contenu = "$messageTxt\n";
63
		$contenu = "$messageTxt\n";
Line 82... Line 83...
82
	 */
83
	 */
83
	private function supprimerHtml($messageHtml) {
84
	private function supprimerHtml($messageHtml) {
84
		$html = $this->ajouterHrefDansBalise($messageHtml);
85
		$html = $this->ajouterHrefDansBalise($messageHtml);
85
		$messageSansHtml = strip_tags($html);
86
		$messageSansHtml = strip_tags($html);
86
		$messageSansTab = trim($messageSansHtml, " \t");
87
		$messageSansTab = trim($messageSansHtml, " \t");
87
		$encodage = $this->conteneur->getParametre('encodage_appli');
-
 
88
		$messageTxt = html_entity_decode($messageSansTab, null, $encodage);
88
		$messageTxt = html_entity_decode($messageSansTab, null, 'UTF-8');
89
		return $messageTxt;
89
		return $messageTxt;
90
	}
90
	}
Line 91... Line 91...
91
 
91
 
92
	/**
92
	/**