In the documentation it states that the email sent to the mailhandler account should be a registered user.
I use mailalais to create an alias for a registered user. for example, a-user@mysite.com is aliased to a-user@gmail.com
If I send an email from a-user@gmail.com, will mailhandler see it as an email from a-user@mysite.com?
Thanks!
Comments
Comment #1
socialnicheguru commentedadding tags
Comment #2
cor3huis commentedYes.
BTW Have you tried it, and did it work as expected? Reply with your result very appreciated.
Comment #3
danepowell commentedThis issue is no longer relevant, as I believe mailalias is now defunct.
Comment #4
rsbecker commentedThis issue should not be closed. Despite the fact that mailalias has been depricated many of us use it because, as far as I know, mailhandler has not been changed to use the multiple emails module.
We need the ability for a user to be able to send from more than one mail address and have mailhandler authenticate the user.
Comment #5
rsbecker commentedI have confirmed that mailhander 6.x.2.0-rc1 does not work with mailalias. Prior versions did work.
The latest version of mailhandler fixed several problems I was having, so I don't want to go back. But I need to have the ability to let users post from more than one address w/o having to set up separate user accounts for each address.
I would love to switch to multipe_email, but mailhandler doesn't yet work with it.
Comment #6
danepowell commentedThis is easy to accomplish with an authentication plugin. Simply copy MailhandlerAuthenticateDefault and modify it to load a user using Multiple Email's API.
If you do this and upload a patch I will commit it.
Comment #7
danepowell commentedComment #8
danepowell commentedI've implemented an initial version of this:
http://drupalcode.org/project/mailhandler.git/commit/24f19e9
Please try it and let me know if it works. Note that I haven't tested it at all- I am doing this strictly out of the kindness of my heart, so I don't have time to do extensive testing- I'm relying on you for that :)
Comment #9
danepowell commented(you can either download that tarball or just wait for tonight's 6.x-2.x-dev release to roll)
Comment #10
rsbecker commentedI downloaded the new version of mailhandler 6.x.2.dev this morning. The multiple_emails plugin does not work. I think I know the reason, but am not sure how to fix it.
The code appears to check only the primary address. I think $address needs to be an array including all addresses associated with the user. Then the plugin needs to step through the elements of the array and authenticate if any of the addresses matches $fromaddress.
Comment #11
danepowell commentedOkay, I figured it out. Sorry, the API documentation for multiple_email is just really lacking.
http://drupalcode.org/project/mailhandler.git/commit/1b1d7b8
Do you know if Multiple Email 7.x is stable enough that we should go ahead and provide support?
Comment #12
rsbecker commentedThe fix worked. It took me a bit to figure that out because I had to remember to go back and change the authentication setting in the feed importer.
I do not have multiple email running on a D7 site, so maybe someone else can tell you whether it is stable. But I assume there never was a version of mailalias for D7, so anyone using D7 never had this functionality.
BTW, I'm going to put my documentation up on my site over the weekend. I'll send a link so you can read it and make sure I haven't made any mistakes.
Comment #13
danepowell commentedComment #14
kentr commentedI've made a fix for 6.x-1.x if anyone's interested.
Comment #15
danepowell commentedhttp://drupalcode.org/project/mailhandler.git/commit/c809a1f
Comment #18
nickonom commentedHas this ever went into 7.x branch?