plugin development – How do you implement a blog subscription service?


I need to send emails to people who subscribe to our blog without using a paid service like mailchimp. What’s the easiest way to do this? I need a widget that takes the emails of the users, so I should create a widget that stores email to a custom db and then I am thinking of creating a cronjob and then querying the post with WP_QUERY and then checking the date so that the post made the same day as the cronjob and running it between 9pm to 12pm and then sending a link to the email would be the best. Now, the only thing is whether instead of sending the link there’s a way to easily generate the html so that it’s the same as on the webpage. Is this how I should do it, or are there even easier way and is there anything wrong with the way I want to implement it.

asura 2 years 2022-01-23T21:55:03-05:00 0 Answers 0 views 0

Leave an answer