This article mainly introduces the implementation method of PHP batch query of WordPress commentator’s E-mail address. This article directly gives Implementation code, friends in need can refer to it
Today I received a lot of New Year greeting messages via email from blogger friends. Hehe, it feels very fun, but how did they achieve this? It’s very simple, but it can be divided into two steps:
1) Get the email address through SQL query
2) Send mass emails through some method
For 1, a few lines of PHP code can solve:
The code is as follows:
Database connection failed! Please check the username and password!
";The database connection is normal, but the specified database cannot be opened!
";
For 2, this is more troublesome... Because any mail service provider will block you with such a large amount of data, so the best way is to build your own SMTP server, or use a mass sending tool, hehe, You can Google this yourself :)