PHP mail system phplist configuration method

Source: Internet
Author: User
This article mainly introduces the PHP mass mailing system phplist configuration method, and summarizes and analyzes the PHP mass mailing system phplist configuration and usage techniques based on the instance form, for more information about how to configure phplist in the PHP mass mailing system, see the example in this article. 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".

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.