简体   繁体   中英

Wordpress - send post to admin email when posting?

I have a niche website that needs to allow users to post events and other things to the website. Wordpress works perfectly for this option (as well as other needs). The problem is, there is also a weekly newsletter (published as a PDF file) that gets sent to a large opt-in email list. Is there any way to configure Wordpress (via plugin or hack) to send the CONTENTS of the post to the admin in a csv or rtf file of some sort? The posts themselves will have several custom fields. Most of the stuff I churn up when I search for "post to email" for Wordpress is the other way around, for people wanting to send an email and have that post to their site, which is not what I want to do. I suppose other ideas of getting around my problem are open to consideration too. Thanks!!

One way I am thinking you could accomplish this but haven't tested it. You could make a php script to parse the rss feed and email that contents. Depending on whether how many posts get done in a week, you could either create a function for it to fire after the post is posted; or have a cron job on it and send it once a week before the newsletter is to be sent. Sorry I'm not in front of my machine that has WP installed to test it out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM