PHP Bulk Mail system phplist Configuration method Detailed summary _php skills

Source: Internet
Author: User
Tags datetime php introduction

This article illustrates the Phplist configuration method of the mail bulk system in PHP. Share to everyone for your reference, specific as follows:

Phplist is a very good mass mailing system, so that we can easily mass electronic magazines, small ads (^_^) and so on.

Recently helped a teacher to build a mass mailing system, with the phplist. But the information on the network to build the system is very fragmented, it will take some effort to combine the line. And since I have done this work, I would like to share it, hope to be useful to everyone. (in addition, phplist or Phpmailer to send mail through Gmail than through other mailboxes to send more trouble, if you need to send through Gmail, after reading this article about the basic configuration, please refer to the phplist and Phpmailer (combined use) Send mail through Gmail configuration method for further configuration.

1. Download with the latest version of Phplist (I use phplist-2.10.12).

2. Place the lists directory under Public_html to your own web directory (on the server).

3. Modify the lists/config/config.php, in its 20 rows around the database to modify information, and then set up in MySQL and $database_name with the same name of the empty database (proposed to change the database connection proofing for UTF8_GENERAL_CI, Prevent Chinese garbled).

4. Through the browser to access the server/lists/admin/, this will prompt the database is not initialized, click the "initialise database" link, to initialize databases. Initialization may have a table (user_blacklist_data) initialization error, that table is about the user blacklist, I do not need this feature, do not affect the use of this error. But if you can't tolerate this mistake, I also have a solution here: Find the lists/admin/structure.php in the

"User_blacklist" => Array ("
 email" => Array ("varchar (255) NOT null unique", "email"),
 "added" => Array ( "DateTime", "when added to Blacklist"),
 "index_1" => Array ("EMAILIDX (email)", ""),
)

Amended to

"User_blacklist" => Array ("
 email" => Array ("varchar (233) NOT null unique", "email"),
 "added" => Array ( "DateTime", "when added to Blacklist"),
 "index_1" => Array ("EMAILIDX (email)", ""),
)

Drop off the database rebuild and reinitialize the database.

5. There are some basic configurations to follow:

is still lists/config/config.php, found at about 190 lines.

Define ("TEST", 1);

Amended to

Define ("TEST", 0);

Because only non-test mode can actually send messages.

and find it in about 650 lines.

Define ("Phpmailerhost", "");

This is the SMTP server name, I use the Sohu mailbox, so instead

Define ("Phpmailerhost", ' smtp.sohu.com ');

A few lines down to find

# $phpmailer _smtpuser = ' smtpuser ';
# $phpmailer _smtppassword = ' Smtppassword ';

Remove the "#" in front of it for comments and fill in the username and password that you used when you sent the message, for example, I'll change it to

$phpmailer _smtpuser = ' myname@sohu.com ';
$phpmailer _smtppassword = ' mypassword ';

If you're not using a Gmail mailbox, so it should be possible to start sending emails (I've tested Sohu mailboxes, QQ mailboxes, University school mailboxes)--but it's important to note that when you send a test message, the destination address must be an email address that already exists in your user list. Otherwise, the send will fail.

If you are using Gmail, see my other article, "Phplist and Phpmailer (combined) to send mail through Gmail configuration method."

More interested in PHP related content readers can view the site topics: "PHP Network Programming Skills Summary", "PHP basic Grammar Introductory Course", "PHP operation Office Document Skills Summary (including word,excel,access,ppt)", " PHP Date and Time usage summary, PHP Introduction to object-oriented Programming, PHP String (String) Usage summary, PHP+MYSQL database Operations Tutorial and PHP Common database operating Skills summary

I hope this article will help you with the PHP program design.

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.