Automating the flow of blog posts to my email list with PHP ⚙️

A while back ⁣I decided that I wanted to automate the flow of blog posts to my email list (which is basically nobody right now by the way 😅).

I found that Mailchimp has a feature for automatically sending to an email list based on RSS feed updates on …


This content originally appeared on DEV Community and was authored by Kelvin Graddick

A while back ⁣I decided that I wanted to automate the flow of blog posts to my email list (which is basically nobody right now by the way 😅).

I found that Mailchimp has a feature for automatically sending to an email list based on RSS feed updates on a website.

A RSS (Rich Site Summary or Really Simple Syndication) is a web feed format that allows users and applications to access updates to websites in a standardized way.

RSS feeds are usually generated for you in website builders and other tools but since my site was built from scratch I needed to make my own.

Here is what I needed to do:
— find the RSS feed XML format online
— create a new PHP page on my website in the RSS format
— dynamically populate the RSS feed items with my blog posts from the database
— test the RSS feed page on a validator website
— setup a RSS feed email campaign using the feed on Mailchimp
— design/style the email template
— send a test email to myself to verify

Automating the flow of blog posts to my email list with PHP

PHP script that generates a RSS feed based on my website's blog posts

Here is the generated RSS feed XML file. A user or application can subscribe for blog updates.

Created an automatic email campaign using the RSS feed on MailChimp

Test email from RSS feed

That was a fun, quick project to work on for a few hours and saved me an exponential amount of time in the future. 💪🏾

⁉️ Anyone have experience with RSS feeds or subscribe to any?


This content originally appeared on DEV Community and was authored by Kelvin Graddick


Print Share Comment Cite Upload Translate Updates
APA

Kelvin Graddick | Sciencx (2021-12-24T20:18:26+00:00) Automating the flow of blog posts to my email list with PHP ⚙️. Retrieved from https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/

MLA
" » Automating the flow of blog posts to my email list with PHP ⚙️." Kelvin Graddick | Sciencx - Friday December 24, 2021, https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/
HARVARD
Kelvin Graddick | Sciencx Friday December 24, 2021 » Automating the flow of blog posts to my email list with PHP ⚙️., viewed ,<https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/>
VANCOUVER
Kelvin Graddick | Sciencx - » Automating the flow of blog posts to my email list with PHP ⚙️. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/
CHICAGO
" » Automating the flow of blog posts to my email list with PHP ⚙️." Kelvin Graddick | Sciencx - Accessed . https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/
IEEE
" » Automating the flow of blog posts to my email list with PHP ⚙️." Kelvin Graddick | Sciencx [Online]. Available: https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/. [Accessed: ]
rf:citation
» Automating the flow of blog posts to my email list with PHP ⚙️ | Kelvin Graddick | Sciencx | https://www.scien.cx/2021/12/24/automating-the-flow-of-blog-posts-to-my-email-list-with-php-%e2%9a%99%ef%b8%8f/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.