NobuNobu
nobun****@users*****
2006年 4月 11日 (火) 22:04:04 JST
Index: xoops2jp/html/class/mail/xoopsmultimailer.php diff -u xoops2jp/html/class/mail/xoopsmultimailer.php:1.2 xoops2jp/html/class/mail/xoopsmultimailer.php:1.2.16.1 --- xoops2jp/html/class/mail/xoopsmultimailer.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/mail/xoopsmultimailer.php Tue Apr 11 22:04:04 2006 @@ -1,5 +1,5 @@ <?php -// $Id: xoopsmultimailer.php,v 1.2 2005/03/18 12:51:55 onokazu Exp $ +// $Id: xoopsmultimailer.php,v 1.2.16.1 2006/04/11 13:04:04 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -37,7 +37,7 @@ * @author Jochen Büînagel <jb****@buenn*****> * @copyright copyright (c) 2000-2003 The XOOPS Project (http://www.xoops.org) * - * @version $Revision: 1.2 $ - $Date: 2005/03/18 12:51:55 $ + * @version $Revision: 1.2.16.1 $ - $Date: 2006/04/11 13:04:04 $ */ /** @@ -61,9 +61,9 @@ * * @author Jochen Buennagel <job****@buenn*****> * @copyright (c) 2000-2003 The Xoops Project - www.xoops.org - * @version $Revision: 1.2 $ - changed by $Author: onokazu $ on $Date: 2005/03/18 12:51:55 $ + * @version $Revision: 1.2.16.1 $ - changed by $Author: nobunobu $ on $Date: 2006/04/11 13:04:04 $ */ -class XoopsMultiMailer extends phpmailer { +class XoopsMultiMailer extends PHPMailer { /** * "from" address @@ -157,7 +157,7 @@ if ($this->From == '') { $this->From = $xoopsConfig['adminmail']; } - + // $this->Sender = $xoopsConfig['adminmail']; //TODO: This line is added in OTX by Marijuana. We must verify. if ($xoopsMailerConfig["mailmethod"] == "smtpauth") { $this->Mailer = "smtp"; $this->SMTPAuth = TRUE; @@ -173,11 +173,14 @@ } /** - * Formats an address correctly. This overrides the default addr_format method which does not seem to encode $FromName correctly + * Formats an address correctly. This overrides the default AddrFormat method + * which does not seem to encode $FromName correctly + * This method name is renamed from "addr_format", because method name in parent class is renamed. * @access private * @return string */ - function addr_format($addr) { + //TODO: We must verify,whether we should prepare this method even now.(phpmailer is upgraded from 1.65 to 1.73) + function AddrFormat($addr) { if(empty($addr[1])) $formatted = $addr[0]; else