ItzNotABug / ghosler

Send newsletter emails to your Ghost CMS subscribers & members, using your own email credentials!
Apache License 2.0
47 stars 5 forks source link

Support Multiple Newsletters #32

Closed ItzNotABug closed 7 months ago

ItzNotABug commented 8 months ago

This PR adds the ability to manage multiple newsletters directly from Ghosler.


The Flow

  1. User publishes a blog post
  2. Ghosler receives the data via webhook
  3. Ghosler checks if there are more than 1 newsletters - a. If no, sends the newsletter as usual to all subscribed members. b. If yes, saves the Post data with all the required information for further actions.
  4. User must go to Analytics page
  5. Select the new post which will now have a Send button
  6. A list of all active newsletters is shown
  7. Click Send on a newsletter & the Post will be sent to the subscribers of that newsletter only
ItzNotABug commented 7 months ago

Adding the list of 'active' newsletter along with a Generic newsletter type that sends the email to all members.

ghosler-newsletters-selection

ItzNotABug commented 7 months ago

I have tested this with the latest commit and this seems to work fine. This can be merged.

fritz-fritz commented 4 months ago

Would be an interesting idea to setup tags for the newsletters ( eg #newsletter1, #weeklydigest, etc... ) automatically over the api and that way when posts are published and have been tagged with the appropriate internal tag, it gets mailed to the corresponding newsletter automatically! I'm not currently using multiple newsletters so am not inclined to implement this at the moment but thought I'd share the idea!