|
I file da modificare sono 2, mailer.inc.php e smtp.inc.php reperibili al link: /public_html/cartelladiinstallazione/include apriamo il file mailer.inc.php scorrete la pagina fino a trovare i caratteri da modificare, per comodità li abbiamo indicati in neretto (eseguire le 7 modifiche) /** * PHPMailer - PHP email transport class * @author Brent R. Matzelle * @copyright 2001 - 2003 Brent R. Matzelle */ //////////////////////////////////////////////////// // PHPMailer - PHP email class // // Class for sending email using either // sendmail, PHP mail(), or SMTP. Methods are // based upon the standard AspEmail(tm) classes. // // Copyright (C) 2001 - 2003 Brent R. Matzelle // // License: LGPL, see LICENSE //////////////////////////////////////////////////// class PHPMailer { ///////////////////////////////////////////////// // PUBLIC VARIABLES ///////////////////////////////////////////////// /** * Email priority (1 = High, 3 = Normal, 5 = low). * @var int */ var $Priority = 3; /** * Sets the CharSet of the message. * @var string */ var $CharSet = "iso-8859-1"; /** * Sets the Content-type of the message. * @var string */ var $ContentType = "text/plain"; /** * Sets the Encoding of the message. Options for this are "8bit", * "7bit", "binary", "base64", and "quoted-printable". * @var string */ var $Encoding = "8bit"; /** * Holds the most recent mailer error message. * @var string */ var $ErrorInfo = ""; /** * Sets the From email address for the message. * @var string */ var $From = "root@localhost"; /** * Sets the From name of the message. * @var string */ var $FromName = "Root User"; /** * Sets the Sender email (Return-Path) of the message. If not empty, * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. * @var string */ var $Sender = ""; /** * Sets the Subject of the message. * @var string */ var $Subject = ""; /** * Sets the Body of the message. This can be either an HTML or text body. * If HTML then run IsHTML(true). * @var string */ var $Body = ""; /** * Sets the text-only body of the message. This automatically sets the * email to multipart/alternative. This body can be read by mail * clients that do not have HTML email capability such as mutt. Clients * that can read HTML will view the normal Body. * @var string */ var $AltBody = ""; /** * Sets word wrapping on the body of the message to a given number of * characters. * @var int */ var $WordWrap = 0; /** * Method to send mail: ("mail", "sendmail", or "smtp"). * @var string */ var $Mailer = "smtp"; /** * Sets the path of the sendmail program. * @var string */ var $Sendmail = "/usr/sbin/sendmail"; /** * Path to PHPMailer plugins. This is now only useful if the SMTP class * is in a different directory than the PHP include path. * @var string */ var $PluginDir = ""; /** * Holds PHPMailer version. * @var string */ var $Version = "1.72"; /** * Sets the email address that a reading confirmation will be sent. * @var string */ var $ConfirmReadingTo = ""; /** * Sets the hostname to use in Message-Id and Received headers * and as default HELO string. If empty, the value returned * by SERVER_NAME is used or 'localhost.localdomain'. * @var string */ var $Hostname = ""; ///////////////////////////////////////////////// // SMTP VARIABLES ///////////////////////////////////////////////// /** * Sets the SMTP hosts. All hosts must be separated by a * semicolon. You can also specify a different port * for each host by using this format: [hostname:port] * (e.g. "smtp1.example.com:25;smtp2.example.com"). * Hosts will be tried in order. * @var string */ var $Host = "smtp.fastcomweb.net"; /** * Sets the default SMTP server port. * @var int */ var $Port = 80; /** * Sets the SMTP HELO of the message (Default is $Hostname). * @var string */ var $Helo = ""; /** * Sets SMTP authentication. Utilizes the Username and Password variables. * @var bool */ var $SMTPAuth = true; /** * Sets SMTP username. * @var string */ var $Username = "usernamesmtprelay"; /** * Sets SMTP password. * @var string */ var $Password = "passwordsmtprelay"; /** * Sets the SMTP server timeout in seconds. This function will not * work with the win32 version. * @var int */ var $Timeout = 20; /** * Sets SMTP class debugging on or off. * @var bool */ var $SMTPDebug = false; /** * Prevents the SMTP connection from being closed after each mail * sending. If this is set to true then to close the connection * requires an explicit call to SmtpClose(). * @var bool */ var $SMTPKeepAlive = false; ora passiamo al file smtp.inc.php (eseguire le 6 modifiche) <?php /************************* Coppermine Photo Gallery ************************ Copyright (c) 2003-2006 Coppermine Dev Team v1.1 originally written by Gregory DEMAR This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ******************************************** Coppermine version: 1.4.10 $Source$ $Revision: 3275 $ $Author: gaugau $ $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $ **********************************************/ /** * Filename.......: class.smtp.inc * Project........: SMTP Class * Version........: 1.0.5 * Last Modified..: 21 December 2001 */ define('SMTP_STATUS_NOT_CONNECTED', 1, TRUE); define('SMTP_STATUS_CONNECTED', 2, TRUE); class smtp{ var $authenticated; var $connection; var $recipients; var $headers; var $timeout; var $errors; var $status; var $body; var $from; var $host; var $port; var $helo; var $auth; var $user; var $pass; /** * Constructor function. Arguments: * $params - An assoc array of parameters: * * host - The hostname of the smtp server Default: localhost * port - The port the smtp server runs on Default: 25 * helo - What to send as the HELO command Default: localhost * (typically the hostname of the * machine this script runs on) * auth - Whether to use basic authentication Default: FALSE * user - Username for authentication Default: <blank> * pass - Password for authentication Default: <blank> * timeout - The timeout in seconds for the call Default: 5 * to fsockopen() */ function smtp($params = array()){ if(!defined('CRLF')) define('CRLF', "rn", TRUE); $this->authenticated = FALSE; $this->timeout = 20; $this->status = SMTP_STATUS_NOT_CONNECTED; $this->host = 'smtp.fastcomweb.net'; $this->port = 80; $this->helo = 'localhost'; $this->auth = TRUE; $this->user = 'usernamesmtprelay'; $this->pass = 'passwordsmtprelay'; $this->errors = array(); foreach($params as $key => $value){ $this->$key = $value; } } FATTO!! Buon Lavoro.
|