Someone has asked me to help them with a website (creating in MODx) and I need a way to post news information via email. That is, I send the article in an email as plain text (or Markdown) to a special address and it is automatically posted to the website as a news article.
Of course I would need to form the email in a certain way so MODx would know how to handle it, including username and email to ensure the sender had permission.
I know this seems like a strange thing to do but I am going to need to post it over a satellite link in remote part of the world and may not have time / bandwith to access the HTML site.
Anyone got ideas?
-
☆ A M B ☆
- 24,524 Posts
Well, first you need to have a way to access the email. I don’t believe you can do that from PHP; you’ll need a server script that gets the email from the server’s incoming mailbox, then makes it available to your webspace php script. There are probably Perl script that do this; you would need to work with the database directly, checking the sender’s email and perhaps a password in the subject, with the user tables, then format the email message and load it into the site_content field.
-
☆ A M B ☆
- 24,524 Posts
It looks like this might do the job, you could use it to write the mail as an html file to a given folder, then use a snippet to include the file in your document’s content, or use a module for a manager user to load the file into the site_content table.
http://www.oac.uci.edu/indiv/ehood/mhonarc.html#whatis
This is not so unreasonnable, I know some blogging tools allow this kind of thing, we had request @Textpattern about this, but I don’t remember which... I’ll try to find it back and post here.
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Hey cool, I thought this was going to be in the too hard / impossible box. Again I am inspired by the MODx community and the ability to find solutions to any problem presented.
-
☆ A M B ☆
- 24,524 Posts
I always like a good puzzle. Maybe I should map one of the buttons on my hot-shot mouse to automatically load Google!