Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Newsletter plugin development; help needed

Started by Muut Archive 10 years ago · 5 replies · 831 views
10 years ago

Hi all. We have problem with incoming emails.

Action 0: Admin changes the status for a question (in plugiin admin panel): “Send emails? From NO (by default) to YES, and SAVES the changes.

Action number 1: We need to parse each file in the user/data/contact folder for a key:value. The program cycle will be: open the file in user/data/contact/contact-312.txt check if “subscribed: true”, then take “email:[email protected]”, save it to array variable; close the file. If there are more files in the user/data/contact folder, make the same action on other txt files.

Action number 2: We use collected data in variable from step 1, put it to prepared html.twig template and send letters to all the emails collected in step 1.

End of program.

Please ask your questions, and help us to develop this plugin as we need it for our project.

Sure, we do upload this plugin to grav repo. So, your help is very much appreciated.
https://github.com/arrtych/grav-plugin-newsletter-2

We found h ttps://github.com/mcspronko/grav-plugin-newsletter ,but not well understood how it works and now we try to contact with a developer

10 years ago

Hi @sommerregen. I tried how you explained,but in admin panel clicking "Newsletter" button I have error message like "An exception has been thrown during the rendering of a template ("Directory name must not be empty.") in "partials/newsletter_subscribers_list.html.twig" at line 8.".How to correctly create subscriber by this plugin?

10 years ago

@arrtych1 You have to create a folder in user/data/newsletter/subscribers first in order to avoid that error.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1369 9 years ago
Archive · by Muut Archive, 9 years ago
2 943 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1126 9 years ago