A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
plugins-topic
Private Messaging: admin does not receive email notification
Avatar
Blaise
136 Posts
(Offline)
1
Nov 20, 2017 - 3:45 am
Print

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
136 Posts
(Offline)
2
Nov 20, 2017 - 3:52 am
Print

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
136 Posts
(Offline)
3
Nov 20, 2017 - 4:11 am
Print

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

16436 Posts
(Offline)
4
Nov 20, 2017 - 4:53 am
Print

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
136 Posts
(Offline)
5
Nov 20, 2017 - 5:08 am
Print

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

16436 Posts
(Offline)
6
Nov 20, 2017 - 5:16 am
Print

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
136 Posts
(Offline)
7
Nov 20, 2017 - 5:55 am
Print

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
136 Posts
(Offline)
8
Nov 20, 2017 - 6:17 am
Print

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

19448 Posts
(Offline)
9
Nov 20, 2017 - 10:01 am
Print

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: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
David Hnát
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
narek amprachamian
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79362

 

Member Stats:
Guest Posters: 607
Members: 16922
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
10
Currently Browsing this Page

1 Guest(s)