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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Post by email on grav

Started by karlessi 3 years ago · 2 replies · 371 views
3 years ago

Ciao,
we installed different grav websites and it's a pleasure to tinker with them,
we do like to develop a plugin to enable "posting by email", something like this for WP https://wordpress.org/plugins/postie/
I'm looking for ideas, suggestions etc. to implement a first working prototype,

just an email address mapped to a grav user able to transform the body of the sent email into a page, the email title into the page title, and maybe an attached image into an media for the post,

any help to point us in the "right" direction would be highly appreciated,

thanks

k.

3 years ago

@karlessi

  • Setup script reading mailbox(es)
    You can explore the mentioned plugin for that, or start with this IMAP example found using Google.
    • Dissect the email structure of the emails received and create page folder with page file per email found.
  • Setup a schedule using Grav's scheduler that executes above email reader script.
  • Use for example a blog page with a collection that automagically lists all pages with a proper category denoting it is derived from an email.

Bundle it all nicely in a plugin.

last edited 11/09/23 by pamtbaau
3 years ago

@pamtbaau
thank you very much for the outline, sounds good,
we'll work on that!

hope to publish something usable soon,
k.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 44 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago