PHP's phplist configuration method is summarized in detail, and phplist is a mass mailing system. PHP's phplist configuration method is summarized in detail. the phplist system in this article describes the PHP phplist configuration method. For your reference, the PHP mass mailing system phplist configuration method is summarized in detail, and the mass mailing system phplist
This article describes how to configure phplist in PHP's mass mailing system. We will share this with you for your reference. The details are as follows:
Phplist is a very good mass mailing system, which allows us to easily Group E-magazines and small advertisements.
Recently, I used phplist to build a mass mailing system for a teacher. However, the information on building the system on the Internet is fragmented and requires a combination of effort. Now that I have already done this job, I 'd like to share it with you and hope it will be useful to you. (In addition, sending mail via gmail via phplist or phpmailer is more complicated than sending emails via other mailboxes. if you need to send emails via gmail, after reading the basic configurations described in this article, refer to phplist and phpmailer (used in combination) configuration method for sending emails via gmail for further configuration)
1. download phplist with the latest version (I am using a phplist-2.10.12 ).
2. put the lists directory under public_html to your own web directory (on the server ).
3. modify lists/config. php: modify the database information in about 20 rows, and then create an empty database with the same name as $ database_name in MySQL (we recommend that you change the database connection to utf8_general_ci to prevent Chinese garbled characters ).
4. access/lists/admin/on the server through a browser. The system will prompt that the database is not initialized. click the "initialise database" link to initialize the database. During initialization, an initialization error may occur for a table (user_blacklist_data). The table is about the user blacklist. I don't need this function, so I don't need to worry about this error if it doesn't affect usage. However, if you cannot tolerate this error, I also have a solution: find
"user_blacklist" => array( "email" => array("varchar(255) not null unique","Email"), "added" => array("datetime","When added to blacklist"), "index_1" => array("emailidx (email)",""),)
Change
"user_blacklist" => array( "email" => array("varchar(233) not null unique","Email"), "added" => array("datetime","When added to blacklist"), "index_1" => array("emailidx (email)",""),)
Drop the database and re-initialize the database.
5. perform the following basic configurations:
Still lists/config. php, found at around 190 rows
define("TEST", 1);
Change
define("TEST", 0);
Because only non-Test mode can actually send emails.
Then, locate it at around 650 rows.
define("PHPMAILERHOST",'');
This is the smtp server name. I use sohu's mailbox, so I changed it
define("PHPMAILERHOST",'smtp.sohu.com');
The following lines can be found:
#$phpmailer_smtpuser = 'smtpuser';#$phpmailer_smtppassword = 'smtppassword';
Remove "#", which is used for comment, and enter the user name and password used to send the email. for example, I will change it
$phpmailer_smtpuser = 'myname@sohu.com';$phpmailer_smtppassword = 'mypassword';
If you are not using a gmail mailbox, you can start sending emails (my sohu mailbox, QQ mailbox, and University school mailbox have been tested)-but note that, when sending a test email, the target address must be an email address that already exists in your user list. Otherwise, the email cannot be sent.
If you are using gmail, see my other article "how to configure phplist and phpmailer to send emails through gmail".