Looking for advice for a mail sending plugin

There is no need for a custom table here – you can use the user metadata table and API. Then create a WP-Cron job to run every 24 hours (or more frequently if you’re paranoid). On the callback query users who’ve registered in the last 7 days using something like: /* * Get all users … Read more

Send email to all registered users [closed]

Before you begin, you should know that sending mass emails is a delicate subject matter, and your hosting provider or mail provider has certain guidelines about this. Some hosting providers, such as Dreamhost, provide “Announcement Lists”, which act as a platform for writing newsletters (or essentially emailing a large group of subscribers). Sending unsolicited email … Read more

Send email when publish new post in certain categories

You can use transition_post_status function, then fetch users and send an email to all users. Here is a sample code, it’s not tested. But it will get you started with this. function wcs_send_mail_on_publish_category_posts( $new_status, $old_status, $post ) { global $post; if ( ‘publish’ !== $new_status or ‘publish’ === $old_status ) return; if ( in_category( array( … Read more