When using one way pre-approved relationships (or any pre approved relationships) currently there is no option of an email alert. This patch adds that functionality.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | user_relationship_mailer.module.20091130.patch | 487 bytes | goz |
| user_relationships_pre_approved_email.patch | 2.9 KB | a_c_m |
Comments
Comment #1
alex.k commentedCommitted with small changes and coder.module fixes. I also added a hook_update() function, so that sites upgrading from an earlier version of User Relationships do not start sending these out by default. Just keeping behavior consistent. New installations will have this enabled by default.
Thank you very much!
Comment #3
goz commentedpre-approved doesn't take user_relationship_mailer_send_pre_approved settings option.
In admin/user/relationships/settings, when "Send Pre-approved messages" is unchecked, users received an email.
I make a patch to fix it.
Comment #4
alex.k commentedComment #5
fabianx commentedPlease apply this patch, else the functionality of the default module breaks, which is sending out wrong mails, which all new users get spammed with.
I put priority to critical as it renders usage of default module with mailer module unusable and is a critical flaw in original patch of this thread.
And I know this patch works as I just created the same patch myself and then I found the same already here ...
The patch also is really tiny and it is only logical that the check needs to be redone, when $op is changed again, so it is a trivial change.
Best Wishes,
Fabian (LionsAd)
Comment #6
victoria_b commentedHi,
I'm not much of a coder but looking through the latest dev version of this module against this patch - it looks like not all of it has been applied.
Alex, Please could you inform me of the status of this patch? do I need to apply it against the latest dev version?
Comment #7
alex.k commentedIndeed it had not been applied. I committed a different patch that does the same thing http://drupal.org/cvs?commit=373646 (to avoid calling variable_get twice). Please check it out.
Comment #9
white_pawn commentedI can't turn it off. That is, I deselect "Send Pre-approved messages", but the e-mails still come in. My pre-approved relationship is created via rules on user registration.
Could anyone please tell me where the variable is stored? Perhaps I could turn it off "manually", or something. Thanks.
Comment #10
oxford-dev commentedSame problem here. Would really like to fix this.