Closed (fixed)
Project:
Mailhandler
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2007 at 01:21 UTC
Updated:
12 Dec 2009 at 03:30 UTC
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
Comment #1
lambert-1 commentedIf 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.
Comment #2
imrubio22 commentedI 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!
Comment #3
gregglesThe steps in comment #1 make sense to me and are generally what is necessary so I'm marking this fixed.