Support Forum

Private Messaging: admin does not receive email notification

BL Blaise
Blaise
Member

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? 

8 Answers

New Answer

BL Blaise
Blaise
Member

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?

BL Blaise
Blaise
Member

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.

YS Yellow Swordfish
Yellow Swordfish
Member

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

BL Blaise
Blaise
Member

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

YS Yellow Swordfish
Yellow Swordfish
Member

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.

BL Blaise
Blaise
Member

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.

BL Blaise
Blaise
Member

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

MP Mr Papa
Mr Papa
Member

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…