Вы находитесь на странице: 1из 4

System Requirements

. PHP LIST (Programa para envio de emails em massa

GNU/Linux
Apache web server
MySQL database server version 4.0 or higher
PHP versions 4.3.x or higher (IMAP module required for bounce
processing)
phplist also runs on PHP 5, MySQL 4.1 & 5.
The developers use the following setup:

A recent release of any Linux distribution


Mysql 5.0.27
PHP 5.2
phplist also runs on windows, with Apache, PHP and MySQL. We
recomend XAMPP server to run phplist on windows for
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl.

Para usar um servidor de emails proprio, usar o zimbra, que tem o postfix embutido.

1. Download the phpList files from the phpList website. It is


recommended to use the latest version marked as stable, unless you are
interested in doing beta-testing (which is a good thing to be done, too).

2. The file is a *.tar.gz file, which means that it is a packed file which you
need to unpack. Windows users can use a program like Winzip, 7zip or
Winrar for this. Make sure you let it re-create (sub)directories.

3. Upload the contents of the lists directory, which you'll find in the
public_html folder of the unpacked source tree into your web folder
(something like www or public_html, for example www-data in Debian,
Apache on Redhat Linux); or a subdirectory of that if you prefer.

4. Create a database which phpList can use. phpList needs the name of
that database during the installation process. If you can,
use phpMyAdmin for this, but you could also do it from the prompt. If
your host won't let you create a new database, don't worry - you can use
an existing one and specify a prefix for all the table names in
the config.php file
so
there
won't
be
any
conflicts.
You also need to have (or create) a user for the database with sufficient
permissions for phpList to use to access the database; this user needs
all the usual permissions for reading, writing, modifying and deleting
records, as well as for creating tables (which is what the installer is going
to do); being allowed to drop tables (not databases) may also be needed
later.

5. With a simple text editor (not a word processor) open the


phpList config.php file in the lists/config/ directory and configure
phplist properly. This may take a while. For detailed instructions on how
to configure this file, seeConfiguring phpList.

6. Point your browser to the web directory where the phplist backend is
located, for instance: http://www.mysite.com/lists/admin/. This will
start the initializing process.

7. Follow the instructions of the installer.

O PHPList vem configurado para usar o PHPMailer em um padro prprio, mas eu precisava
usar junto com o SMTP do Gmail para enviar, ento tive que fazer algumas alteraes:
-Primeiramente
baixei
a
ultima
verso
http://sourceforge.net/projects/phpmailer/files/

do

PHPMailer

no

endereo:

-Extrai o contedo e copie para o diretrio do seu servidor a pasta. Lembrando que j existe
uma pasta chamada phpmailer, ento renomeei a pasta para phpmailergmail. Essa pasta
deve conter dois arquivos importantes: O class.phpmailer.php e class.smtp.php.
-Editei o topo do arquivo lists/admin/class.phplistmailer.php para apontar para a local do
novo class.phpmailer.php, e adicionei uma nova entrada para o class.smtp.php.

equire( dirname(__FILE__) .
'/phpmailergmail/class.phpmailer.php');
require( dirname(__FILE__) . '/phpmailergmail/class.smtp.php');

4) Ainda no arquivo class.phplistmailer.php, editei a funo PHPlistMailer abaixo da


chamada if (defined(PHPMAILERHOST) && PHPMAILERHOST != &&
isset($GLOBALS['phpmailer_smtpuser']) && $GLOBALS adicionando as seguintes
linhas:
?

1
2

$this->SMTPSecure="ssl";
$this->Port=$GLOBALS['phpmailer_smtpport'];

E ficou assim:

if (defined('PHPMAILERHOST') && PHPMAILERHOST != '' &&


isset($GLOBALS['phpmailer_smtpuser']) &&
$GLOBALS['phpmailer_smtpuser'] != '') {
$this->SMTPAuth = true;
$this->SMTPSecure="ssl";
$this->Port=$GLOBALS['phpmailer_smtpport'];
$this->Helo = getConfig("website");
$this->Host = PHPMAILERHOST;
$this->Username = $GLOBALS['phpmailer_smtpuser'];
$this->Password = $GLOBALS['phpmailer_smtppassword'];
# logEvent('Sending authenticated email via
'.PHPMAILERHOST);

# logEvent('Sending via smtp');


$this->Mailer = "smtp";

5) Deposi disso pude finalmente editar o arquivo lists/config/config.php com os seguintes


itens:

define("PHPMAILERHOST",'smtp.gmail.com');
$phpmailer_smtpuser = 'email@seusite.comr';
$phpmailer_smtppassword = '********';
$phpmailer_smtpport = '465';

Вам также может понравиться