Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Private Messaging: admin does not receive email notification
Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 20, 2017 - 3:45 am

Hi,

The admin user does not receive Private Messaging email notification when a new PM is sent to him: I checked my email logs server side and all users receive an email telling them that they have a new PM, except the admin.

Is there a specific setting I need to enable so that admin also receives the email? Is it because the admin has the same email as the sender? 

Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 20, 2017 - 3:52 am

I tested sending a PM to another admin and he receives the PM email notification immediately.

So it's not linked with admin status.

I suppose the problem lies in the fact that the problematic admin's email is the same as the sender's email?

Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 20, 2017 - 4:11 am

I tried changing the email address of the admin so that sender is different than receiver and still no email is generated.

I use a 3rd party for email sending with full logging: so I can see in real time what gets sent. And I see that the email is not generated at all.

Is there a setting in the PM that allows a user to disable receiving email notifications? This is perhaps what is happening... I do not have a standard dashboard set up for users in the front end.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 20, 2017 - 4:53 am

Yes - in the forum profile Options > Global Options, users can opt out of receiving notification emails form PMs. Worth checking first.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 20, 2017 - 5:08 am

Thanks.

I disabled the profile options completely from the front end (you are talking about a front end panel right? Not in the wp admin section?) and integrated options in a self built options panel.

Could you please let me know where in the database this value is stored?

I looked into the obvious place:

user_options in wp_sfmembers but could not find it there.

thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 20, 2017 - 5:16 am

That's where it is though. In the user_options column. The element name in the php serialised array is 'pmemail' which will be set to a 1 or a zero.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 20, 2017 - 5:55 am

Great: thanks for the answer.

I checked and the admin does not at all have this field.

This is a normal user:

a:13:{s:10:"hidestatus";i:0;s:8:"timezone";i:0;s:15:"timezone_string";s:12:"Europe/Paris";s:6:"editor";i:1;s:8:"namesync";i:1;s:11:"unreadposts";i:50;s:7:"pmemail";i:1;s:13:"pmdisplaysize";i:0;s:8:"pmoptout";i:0;s:11:"pmsortorder";i:0;s:9:"pmopenall";i:0;s:11:"autosubpost";i:0;s:12:"autosubstart";i:0;}

another normal user:

a:14:{s:10:"hidestatus";i:0;s:8:"timezone";d:1;s:15:"timezone_string";s:12:"Europe/Paris";s:6:"editor";i:1;s:8:"namesync";i:1;s:11:"unreadposts";s:2:"50";s:14:"mentionsoptout";i:0;s:7:"pmemail";i:1;s:8:"pmoptout";i:0;s:11:"pmsortorder";i:0;s:9:"pmopenall";i:0;s:11:"autosubpost";i:0;s:12:"autosubstart";i:0;s:12:"subnewtopics";i:0;}

 

and this is admin:

a:7:{s:10:"hidestatus";i:0;s:8:"timezone";i:0;s:15:"timezone_string";s:12:"Europe/Paris";s:6:"editor";i:1;s:8:"namesync";i:1;s:11:"unreadposts";i:50;s:14:"mentionsoptout";b:0;}

A few interesting findings:

- not all users have the pmemail setting. And if they don't then they don't receive emails. 

- not all users have the mentionsoptout setting. 

 

I now have the correct information to solve my problem. Thanks.

Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 20, 2017 - 6:17 am

All solved: thanks! I was able to implement this feature in my custom profile dashboard and now as admin I receive emails 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 20, 2017 - 10:01 am

good to hear... worth noting the setting may not exist (notably with older simple press installs) until something on that user profile page is saved...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626