Fork me on GitHub

Rapport de message :*
 

Re: Erreur lors d’un envoi de mail avec un module ou autres

Titre du sujet : Re: Erreur lors d’un envoi de mail avec un module ou autres
par mage sur 06/02/2017 09:55:10

Je pense que le problème vient d'ici:
Citation :

htdocs/language/french/xoopsmailerlocal.php


Il faut modifier le fichier avec ce contenu:

<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code
 which is considered copyrighted (c) material of the original comment or credit authors.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 *  Xoops Language
 *
 * @copyright       (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license             GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package             kernel
 * @subpackage          Xoops Mailer Local Language
 * @since               2.3.0
 * @author              Taiwen Jiang <phppp@users.sourceforge.net>
 */
defined('XOOPS_ROOT_PATH') || exit('Restricted access');
/**
 * Localize the mail functions
 *
 * The English localization is solely for demonstration
 */
// Do not change the class name
class xoopsmailerlocal extends XoopsMailer
{
    
/**
     * Constructer
     *
     * @return XoopsMailerLocal
     */
    
public function __construct()
    {
        
parent::__construct();
        
// It is supposed no need to change the charset
        
$this->charSet strtolower(_CHARSET);
        
// You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php
        
$this->multimailer->setLanguage('fr');
    }
    
// Multibyte languages are encouraged to make their proper method for encoding FromName
    /**
     * @param $text
     *
     * @return mixed
     */
    
public function encodeFromName($text)
    {
        
// Activate the following line if needed
        // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
        
return $text;
    }
    
// Multibyte languages are encouraged to make their proper method for encoding Subject
    /**
     * @param $text
     *
     * @return mixed
     */
    
public function encodeSubject($text)
    {
        
// Activate the following line if needed
        // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
        
return $text;
    }
}


Merci de me confirmer si tout fonctionne maintenant!
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

48 Personne(s) en ligne (40 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 48 | Plus ...