Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 24, 2021 08:18 pm GMT

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 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?


Original Link: https://dev.to/kgcodes/automating-the-flow-of-blog-posts-to-my-email-list-with-php-3k2p

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To