as the title explain:
does anybody knows a way to post contents directly from a webmail?
I mean, I write a mail and it is automatically posted on my blog, I add an image and is automatically put in the image page and so on....

Comments

desm0n’s picture

Take a look at Mailhandler

Description
The Mailhandler module allows registered users to create or edit nodes and comments via email. Authentication is usually based on the From: email address. Users may post taxonomy terms, teasers, and other node parameters using the Commands capability. See useful command documentation.

http://drupal.org/project/mailhandler

Haven't tried it yet but it sounds interesting.

Piattaforma’s picture

installed but here's whats happens when I press retrieve:

Fatal error: Call to undefined function: imap_open() in /var/www/drupal/modules/mailhandler/mailhandler.module on line 16

suggestions?

http://piattaforma.ath.cx

ChrisKennedy’s picture

The very likely reason is that your server doesn't have the php's IMAP extension enabled - though your situation also points to the fact that mailhandler should check that and give a helpful error message. I have created a feature request to implement this in Mailhandler.

Do you control the server? Mailhandler's Readme.txt mentions how to do enable the extension in windows via php.ini, but in linux/etc. you'll have to recompile PHP with the --with-imap flag.

Piattaforma’s picture

to be sincere I read that I have to recompile php but how to recompile php?
It's not a binary......

http://piattaforma.ath.cx

piersonr’s picture

As chris mentioned, the instructions for adding the IMAP PHP extension (on windows) are listed in the readme file.

The IMAP dynamic extension must be enabled. On Windows PHP installations, this is as easy as uncommenting the line containing "extension=php_imap.dll" in php.ini. For other OS, you may need to recompile PHP if you don't have this extension already.

After modifying php.ini, the changes will take effect (i.e. PHP will be recompiled) once PHP is restarted.

These instructions will not be applicable if you're using a hosted webserver. If that's the case, you'll need to ask your host to enable the extension.

It's generally easier to help, btw, if you are clearer about the specs your running under (i.e. OS, PHP version, etc).