Project

General

Profile

Actions

Anomalie #856

closed

Autoload de la classe SMTP de phpMailer

Added by Johan Cwiklinski over 10 years ago. Updated over 10 years ago.

Status:
Fermé
Priority:
Normal
Category:
Emails
Target version:
Start date:
09/25/2014
Due date:
% Done:

100%

Estimated time:
Version utilisée:

Description

La classe n'est pas trouvée :

PHP Fatal error:  Class 'SMTP' not found in galette/includes/phpMailer-5.2.8/class.phpmailer.php on line 1173

Dans le paquet installé sur mon système, un patch a été appliqué pour corriger ça :
http://pkgs.fedoraproject.org/cgit/php-PHPMailer.git/tree/PHPMailer-path.patch

Actions #1

Updated by Johan Cwiklinski over 10 years ago

  • Status changed from Nouveau to In Progress

À priori, le problème se corrige « simplement » :

diff --git a/galette/lib/Galette/Core/GaletteMail.php b/galette/lib/Galette/Core/GaletteMail.php
index a295be8..58dda74 100644
--- a/galette/lib/Galette/Core/GaletteMail.php
+++ b/galette/lib/Galette/Core/GaletteMail.php
@@ -41,6 +41,7 @@ use Analog\Analog as Analog;

 /** @ignore */
 require_once 'class.phpmailer.php';
+require_once 'class.smtp.php';
 require_once GALETTE_ROOT . 'includes/html2text.php';

 /**

Actions #2

Updated by Johan Cwiklinski over 10 years ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
Actions #3

Updated by Johan Cwiklinski over 10 years ago

  • Status changed from Résolu to Fermé
Actions

Also available in: Atom PDF