I noticed that Privatemsg hasn't send the Notify Mail for new PM to Users when using User-Roles instead of Usernames as Recipients.
I am using PHPMailer 7.x-3.x-dev with SSL (Port 465).
I checked if there is anything wrong with my PHPMailer Config.
I got a testmail by PHPMailer that my site is properly configured to use PHPMailer sending Emails.
So in step 2 I checked the settings of my Privatemsg module. I sended a test-PM to myself.
The submit results in a successfull Message. 5 Minutes later I got a Mail Notification to my Inbox with
"You habe a new Private Message ....."
OK fine!
I sended a second PM to 5 other user accounts with the same result. All 5 Users belong to the role "Testusers".
The 3rd and last try was to send a PM to the role "Testusers" ... and I got a successfull submit for sending the PM with the effect that everybody's PM-Inbox had a new message.
But in all 5 cases no Mail has been send to inform the users about a new entry in their Message-Box.
In every user profile is saved a valid email adress.
The Log files are empty! No errors.
I haven't configured Limits to Privatemsg nor are user rights missing sending PMs to roles.
I am sure that sending PMs to roles has been worked till 7.x-1.2 with same settings.
Comments
Comment #1
-Mania- CreditAttribution: -Mania- commentedI can confirm this. When sending to all users of a role there is no email notification. :(
Comment #2
chrisssi CreditAttribution: chrisssi commentedHi @ all,
is there anybody outside (one of the Privatemsg Project) who can confirm this issue too?
There weren't updates since August 2012 but maybe there are workarounds to solve the problem?
Regards
Comment #3
twuli CreditAttribution: twuli commentedHello, yes, I have also the problem.
PM generates a Role keien e-mail notification.
Too bad that there was no response so far.
Had already written a message: http://drupal.org/node/1658012
Greetings
Twuli
Comment #4
ptmkenny CreditAttribution: ptmkenny commentedMarked http://drupal.org/node/1862118 as a duplicate
Comment #5
ptmkenny CreditAttribution: ptmkenny commentedMarked http://drupal.org/node/1658012 as a duplicate
Comment #6
chrisssi CreditAttribution: chrisssi commentedUpdate July 21, 2013
I've updated to the latest stable 7.x-1.4
https://drupal.org/node/2044601
Never the less I can't receive Notify-Mails by sending new PMs to a role (whole member group of Users)
There are no failures / errors shown in the log files. The PMs are delivered! All members of a group receive the PM - but this isn't practicable without having the notify by mail when users are logged of the drupal website.
Is there anybody outside who have an idea about the problem?
Thanks a lot.
Comment #7
ptmkenny CreditAttribution: ptmkenny commentedYes, this is a confirmed bug but there is no solution yet. Patches are welcome if someone has already fixed this.
Comment #8
akshat.khariwal CreditAttribution: akshat.khariwal commentedHave created a patch to be used in 'pm_email_notify.module'. This will send email notifications to each and every user of that role(s).
Comment #9
akshat.khariwal CreditAttribution: akshat.khariwal commentedResubmitting the patch. please ignore above.
Comment #11
ptmkenny CreditAttribution: ptmkenny commentedPatch header is wrong so it won't apply, re-rolled.
Comment #12
ptmkenny CreditAttribution: ptmkenny commentedComment #13
ptmkenny CreditAttribution: ptmkenny commentedComment #15
ptmkenny CreditAttribution: ptmkenny commentedRe-rolled patch in git
Comment #16
brainHax CreditAttribution: brainHax commentedyes it seems that it does work . i sent a msg to a role , and my inbox is full of email delivery messages . (coz my all users profiles were dummy)
Comment #17
ptmkenny CreditAttribution: ptmkenny commented@brainHax If a patch works, please mark it "reviewed and tested by the community." A patch should not be closed as fixed until it has been committed.
Comment #18
twuli CreditAttribution: twuli commentedhello,
I tested the patch today.
The notification by e-mail to all users of the work role.
Thank you so much.
A small error still exists in the line of the parties to a message.
The owner of the message gets displayed: conversation between you and + Member (Role) (was only so long as no one answered)
a party member gets displayed: conversation between you and Mario
-> Can be changed so that the involved + member detects that it is a PM to a user group with the role "+ member"?
regards
twuli
Comment #18.0
twuli CreditAttribution: twuli commentedUpdate
Comment #19
ShaunDychko CreditAttribution: ShaunDychko for Bellin commentedThis query will retrieve blocked users, which might not be what is intended.
Comment #20
ShaunDychko CreditAttribution: ShaunDychko for Bellin commentedAh, critique in #19 doesn't matter since the module tests for whether the user is block before sending them a message in privatemsg_privatemsg_block_message(). Setting back to RTBC (although I haven't actually applied the patch myself. I went with a VBO and Rules approach to mass private messages).
Comment #21
ivnish CreditAttribution: ivnish commented