For some reason, it does not appear that mailhandler is correctly identifying e-mail. The e-mail address is an address for a user, actually the admin of the site. Yet it says that it cannot create story items.

To experiment, I tried from another user e-mail account, no go. Then I set up the site to allow posts from anonymous users. That worked. So the part that appears to be breaking down is connecting the e-mail address with the user account. Any ideas what to check?

Comments

lambert-1’s picture

If you look at the module, you'll see it's failing the permissions check in the mailhandler_node_submit function for creating a node.

So I did two things:

1. Create da user, say "mail", gave user "mail" the email address the mail is coming from, and gave user "mail" permission to administer nodes (and do nothing else).

2. Filled in the from header with the word "From" which is the mailer's account uses (not "Sender".)

That way, Drupal can go from the email to the user, check the user's permissions, and create the node.

That worked.

imrubio22’s picture

I tried this and I am still getting nodes posted as Anonymous. Also, I don't think allowing Anonymous Users to create content is the best answer although it's the only one working for me. Is there a more secure solution? When I'm logged out I can see an option to add content using any of the core Drupal themes.

thanks!

greggles’s picture

Status: Active » Fixed

The steps in comment #1 make sense to me and are generally what is necessary so I'm marking this fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.