Send a daily HTML post digest email with WordPress and SMTP
Quick Overview
Description
Quick Overview This workflow runs daily at 8:00 AM, pulls recent posts from a WordPress site via the WordPress REST API, builds a mobile-friendly HTML digest with a plain-text fallback, and sends it as an email using SMTP. How it works Runs every day at 8:00 AM on a schedule. Loads configuration values such as the WordPress site URL, look-back window, post limit, and recipient email address. Requests the most recent WordPress posts published after the look-back timestamp from /wp-json/wp/v2/posts, including embedded featured media. Builds an HTML email digest (plus a plain-text version) containing each post’s title, date, excerpt, featured image, and link. Checks whether any posts were returned and exits without sending an email when there are no new posts. Sends the digest email via SMTP with a subject line that includes the site URL and the number of posts. Setup Set the siteUrl, daysBack, postLimit, and recipient toEmail values in the configuration step. Configure SMTP/email sending credentials and set the fromEmail address in the email step. Ensure your WordPress site’s REST API is reachable (and adjust the schedule time if 8:00 AM is not desired). An n8n automation workflow template by Jiayu Electronics.
Community Metrics
Author
Jiayu Electronics
Platform
web
Pricing model
free
Categories
- Automation
Tags
- n8n
- workflow
- send-email
- http-request
- code
Capabilities
- 3 nodes