Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Blogging via e-mail


Go to End


9 Posts   2840 Views

Avatar
funfried

Community Member, 22 Posts

16 July 2010 at 3:44am

Hi,

I wonder if there is a way to blog via e-mail with the sivlerstripe blog module?

Or if someone can tell me what type of blog the blog module is, because in flickr for example you can setup a blog so that you can blog via e-mail but you have to specify the type of the blog, e. g. Blogger Blog, Typepad Blog, Movable Type-Blog, ...

Thanks in advance

Fabi

Avatar
Martijn

Community Member, 271 Posts

16 July 2010 at 8:05am

You could create a controller that reads out an emailbox thru a cronjob like secretnamewithalotofnumbers@domain.com and when it finds an email with a subject like : BlogCategoryName: BlogTitle it creates a new blog page.

A while ago I created such system to post to an online chatbox like application (non SS system). Is easily to create with PHP. You could maybe even add images in the attachment to the blogpost with something like {replaceThisTagWiththeAttachedImage} or a has_one relation for the image.

Hope this get you started. En please post your results ;)

Avatar
funfried

Community Member, 22 Posts

16 July 2010 at 7:09pm

Edited: 16/07/2010 7:10pm

Thanks for your anwser, I didn't want to start implementing I thought there is maybe already something like that, or at least SS uses a common blog system or type of blog so that I could use flickr or an iPhone App for that ;)

But in this case, maybe I'll try to implement something.

But before I start implementing that, the first problem already occured: I have only a simple web hosting package without ssh access or at least cronjobs, I have to find another solution for that.

Fabi

Avatar
biapar

Forum Moderator, 435 Posts

16 July 2010 at 11:09pm

If you want, we can help you with hosting.

Avatar
funfried

Community Member, 22 Posts

17 July 2010 at 12:29am

Thanks, but I'm really happy with my web hoster, if I would pay more, I could have these features, but it's my own small private website therefore I don't think it's worth it ;)

Avatar
bummzack

Community Member, 904 Posts

17 July 2010 at 3:00am

Edited: 17/07/2010 3:01am

Usually, even most basic webhosters allow for custom cronjobs. Not the ones you add to the crontab via console, but some that "execute" an URL of your site. In a lot of cases you can edit them via your website "Control-Panel"... no need for SSH.

If your webhoster doesn't support cronjobs at all, maybe use a free service like this one: http://www.setcronjob.com/
There you can setup a cronjob that will execute an URL of your Site regularly. The URL can be a SilverStripe page or any PHP script that executes the task you need to perform.

Avatar
funfried

Community Member, 22 Posts

17 July 2010 at 3:07am

Cool, thanks for this tip!

Avatar
bummzack

Community Member, 904 Posts

17 July 2010 at 3:12am

You're welcome.
Oh, and since you're from germany, you might also want to consider:
https://www.cronjob.de/, http://www.cron-server.de/ or http://my-cronjob.de/

All of them offer a free cronjob service.

Go to Top