This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT YEAR(post_date) YEAR, MONTH(post_date) MONTH, COUNT(*) COUNT | |
| FROM wp_posts | |
| WHERE post_type = 'post' AND post_status = 'publish' | |
| GROUP BY YEAR(post_date), MONTH(post_date); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import smtplib | |
| from email.mime.text import MIMEText | |
| smtp_server = 'mail.domain.com' | |
| smtp_port = 587 # Typically 587 for TLS | |
| username = '[email protected]' | |
| from_email = username | |
| password = 'password' |
OlderNewer