Closed (fixed)
Project:
Signup
Version:
5.x-2.x-dev
Component:
Email
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Feb 2008 at 04:49 UTC
Updated:
12 Mar 2009 at 18:27 UTC
Jump to comment: Most recent file
On the 'signup broadcast' tab, it says the message will be sent from the node owner's email address but in fact, the email the recipient receives says it comes from the site admin email address and the reply-to email address is the site owner.
this is malfunctioning right? is there a fix?
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | signup.module.zip | 21.74 KB | mdowsett |
| #2 | signup_broadcast_from_header.patch | 874 bytes | dww |
Comments
Comment #1
dwwI think I see the bug. If possible, a work-around would be to try as a user with 'administer site configuration' permission and see if it works. If that works, and it fails for regular users, I'm sure I see the bug, and it should be pretty easy to fix.
Comment #2
dwwThis is totally untested, but it should solve the bug for regular users. Please let me know if it works.
Comment #3
mdowsett commentedthanks for looking into this...but I don't know WHERE I put this patch? What file? Does it replace some lines?
Comment #4
dwwhttp://drupal.org/patch/apply
Comment #5
mdowsett commentedthanks....I don't feel comfortable running command line commands....is there another way to make it happen?
Comment #6
dwwi suggest you start getting comfortable with two important concepts/operations:
a) working on a test site
b) using the command-line
those skills will serve you well in the drupal ecosystem, and the open source world in general. ;)
Comment #7
mdowsett commentedby chance is this worked into a signup.module update yet?
Comment #8
dwwOf course not -- or I would have changed the status to "fixed" when I committed it. The status is accurate: this needs review. Someone who cares about this problem needs to apply this patch and see if it solves the bug.
Comment #9
mdowsett commentedsorry to cause your frustration.
I have made slight modifications to the signup.module so I got an error when trying to run the patch (I tried to learn!!!). I'm assuming it's looking for similarly (proper) coded lines to rewrite and since I've added some lines, it doesn't match up.
Is that an accurate statement? This is the first patch I've tried to run.
I also tried to do it manually
I replaced/removed this line:
- $from = $form_values['from'];
And added these in it's place:
+ if (user_access('administer site configuration')) {
+ $from = $form_values['from'];
+ }
+ else {
+ global $user;
+ $from = $user->mail;
+ }
But it had no effect.
Thanks for your advice (if you have any more) and if not, I'll have to wait for an updated module someday.
Thanks for this great module too - it's the core of this site I'm doing.
Comment #10
wylbur commentedWe are using the signup module, and have given users on the site permission to use the Signup Broadcast feature.
When site users access the Signup Broadcast, there is a message at the bottom of the page that states "This message will be sent from: xxx@xxx.xxx" (xxx@xxx.xxx being the currently logged in user's email address). However, messages generated from the signup module were sent from the site admin email address.
I applied this patch, and the subsequent emails were marked as 'sent' and 'reply-to' with the site user's email address rather than the site admin's email address.
Double-plus-good here! Thanks for the good work!
Comment #11
mdowsett commentedI reviewed the changes I made and it is all good (should be)...but it isn't.
It's even stranger than I thought.
When I send broadcast emails from the admin user (UID=1), it sends it from that user's email address (working properly).
But when I send broadcast emails from a user that owns that event node, it sends it from the email address I have as the site's email address (set at /admin/settings/site-information)...even tho when that user is on their /node/xxx/signup-broadcast page, it does say that it will be sent from their email address.
I've attached my signup.module file here in hopes you could review the changes I made (at line 2333).
I'd REALLY appreciate help with this.
Comment #12
mdowsett commentedpretty please?! :) I could still use some help on this.
Comment #13
dww- I don't give out free support to people who modify the code and then have problems. If you want to hire me to debug your problems, use my contact tab.
- Looks like #10 actually tested and confirmed the patch works, so I committed it to HEAD. It'll be out in 5.x-2.5 whenever I release that.
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
mdowsett commentedI hate to open up this ticket after all this time but I still can't get this fixed and I can't apply the patch due to some custom code added elsewhere in that file.
Here is my section for getting the node-owner's email address as the sent-from person:
I've been struggling with this for over a year now and I'm hoping someone can tell me what's wrong in it.
MANY thanks.
Comment #16
dwwI don't provide free support for your customized (aka hacked) copy of my code. ;) if you want help with this, contact me privately about hiring me. At the very least, please have the courtesy to open a new support request in cases like this, instead of reopening a closed issue. Thanks.