I'm hoping someone can help me resolve why my users aren't receiving the notifications when a relationship is established. I've confirmed that its not a user error or going to the spam folder etc. Here is my setup:
Modules used: UR-API, UR-UI, UR-Mailer
Type: One way relationship, no approval necessary, not restricted by role.
Settings: Users can turn off messages, but this is happening for those with notifications box checked. Send pre-approved messages box is also checked with a message in the body.
Now I've customized the interface a little bit, and I'm guessing its in doing this that I've somehow messed up the UR-Mailer functionality. Here goes:
String overrides: I've changed the text that appears in the profile settings to reflect the specific type of relationship I've created for my site. I can't see that this would mess it up, but you never know. Ex: Relationship email settings is overridden to Favorite Family Notification Settings.
hook_menu: I've changed it up a bit in a custom module:
// Alter Relationships tabs and titles
$items['relationships']['title'] = t('My favorites');
$items['relationships/list']['type'] = MENU_CALLBACK;
$items['relationships/requests']['type'] = MENU_CALLBACK;The reason I've hidden these links is because to add a relationship, the user clicks a button I've created on the profile page. Here is the code for that:
<p><form action="/relationship/<?php print($account->uid) ?>/request/<?php print($user->uid) ?>?destination=user%2F<?php print($account->uid) ?>" accept-charset="UTF-8" method="post" id="user-relationships-ui-request" class="confirmation">
<input type="hidden" name="rtid" id="edit-rtid" value="1" />
<input type="hidden" name="elaboration" id="edit-elaboration" value="New favorite" />
<input type="hidden" name="user_relationships_request_confirm" id="edit-user-relationships-request-confirm" value="1" />
<center><span class="favoritebtn"><input name="submit" type="submit" id="edit-submit" value="" class="form-submit" /></span></center></form></p>
After clicking the request button, they're taken to the confirmation page. "Are you sure you want to become username's relationship?
My best guess is that by hacking the request relationship link I've inadvertently bypassed whatever calls the mailer. I need my users to be able to see when someone has added them as a favorite. Any ideas out there?
Thanks in advance!
- Ryan
Comments
Comment #1
rschwab commentedThis hasn't come up for anyone else? I know that its a problem directly related to this module because other modules are having no problems sending emails.
Comment #2
rschwab commentedFound the source of this problem! My relationship (the only one I'm using) is a one-way pre-approved relationship. As such, when I checked off Email Options in the settings page I only checked "Allow users to turn off relationship messages" and "Send Pre-approved messages".
However, this will prevent the module from sending emails. To send the email, I had to also check "Send Request messages". There is no way this should be by design, so I'm switching the category to bug report.
- Ryan
Comment #3
cerup commentedI can confirm this problem. I don't think this used to be a bug in the past (since mail was being sent with only 'send pre-approved messages' turned on. However, I can confirm that without 'send request messages' turned on, the pre-approved messages will NOT be sent.
This should definitely be looked into for a future release.
Comment #4
rschwab commentedAt some point this was fixed. Just confirmed with the dev version from 12/26/10. Hooray!