PHP Bulk Mail system phplist Configuration method detailed summary, bulk mail system phplist_php Tutorial

Source: Internet
Author: User
Tags how to send mail

PHP Bulk Mail system phplist Configuration method detailed summary, bulk mail system phplist


This paper describes the Phplist configuration method of bulk mail system in PHP. Share to everyone for your reference, 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 about building the system on the Internet is fragmented, and it takes some effort to combine it. And since I've done this work, I'll share it and hope it will be useful to everyone. (in addition, phplist or Phpmailer to send mail through Gmail than through other mailboxes will be more trouble, if you need to send through Gmail, after reading the basic configuration of this article, please refer to the "Phplist and Phpmailer (combined use) Configure how to send mail via Gmail for further configuration)

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

2. Place the lists directory under public_html in its own web directory (on the server).

3. Modify the lists/config/config.php, modify the database information about 20 rows, and then build an empty database with the same name as $database_name in MySQL (it is recommended to proofread the database connection to UTF8_GENERAL_CI. Prevent Chinese garbled).

4. Through the browser to access the/lists/admin/on the server, the database is not initialized, click on the "initialise database" link, to initialize the databases. Initialization may have a table (user_blacklist_data) initialization error, the table is about the user blacklist, I do not need this function, do not affect the use of the error. But if you can't tolerate this mistake, I have a solution here too: 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)", ""),)

Revision changed to

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

It's good to drop the database rebuild and reinitialize the database.

5. Here are some basic configurations:

is still lists/config/config.php, found at around 190 rows

Define ("TEST", 1);

Revision changed to

Define ("TEST", 0);

Because only non-test mode can actually send messages.

And then find it at around 650.

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 the comment and fill in the user name and password that you used to send the message, for example, I'll change it to

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

If you are not using a Gmail mailbox, then you should be able to start sending mail (I have tested Sohu mailbox, QQ mailbox, University School mailbox)--but one thing to note is that the destination address must be an email address that already exists in your user list when sending a test message. Otherwise, the send will fail.

If you're using Gmail, see my other article, "Phplist and Phpmailer (combined use) how to send mail through Gmail."

More interested in PHP related content readers can view this site: "PHP Network Programming Skills Summary", "PHP Basic Grammar Introductory Tutorial", "PHP operation Office Document Skills Summary (including word,excel,access,ppt)", " PHP Date and Time usage summary, PHP Object-oriented Programming primer, PHP string usage Summary, PHP+MYSQL Database Operations Primer, and PHP Common database operations Tips Summary

I hope this article is helpful to you in PHP programming.

Articles you may be interested in:

    • PHP sends mail with Phpmailer
    • thinkphp how to send mail using Phpmailer
    • Use Phpmailer to send code sharing for mail
    • Phpmailer the solution for sending mail on the server is not normal
    • Phpmailer Sending HTML content, message instances with attachments
    • The solution of Phpmailer Chinese garbled problem
    • A simple way to use PHP to send mail using Phpmailer
    • thinkphp implementing code for mail delivery using Phpmailer
    • Phpmailer Send an example of Gmail messages
    • Phpmailer implementation code for mail delivery
    • Phplist and Phpmailer (combined use) how to send mail via Gmail

http://www.bkjia.com/PHPjc/1117065.html www.bkjia.com true http://www.bkjia.com/PHPjc/1117065.html techarticle php Bulk Mail system phplist Configuration method detailed summary, bulk mail system phplist This article describes the PHP bulk mail system phplist configuration method. Share to everyone for your reference, ...

  • 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.