PDA

View Full Version : Trying to find code of PM Notifications


pattycake
02-11-2014, 11:57 PM
I have written code to disable PM's, etc on a per user basis. It also sets the ability for them to receive or read a PM. It works great.

Now I also want to disable the PM notifications on a per user basis but I am having a hard time finding the place in the code that, when a PM is sent, determines if the receiver is supposed to get an email and if so, sends the PM notification. I have looked hard at private.php but cannot seem to find the code in that script.

Can someone help me out here?

kh99
02-13-2014, 09:46 PM
The code that sends PM notification email is in includes/class_dm_pm.php.

pattycake
02-13-2014, 11:05 PM
awesome... thank you.. I now have lots of user-based admins

Last question on the PM notification - is it done immediately after the PM is created, or is it done via a cron job?

kh99
02-13-2014, 11:14 PM
It's sent just after the pm is created. Edit: well, the function to 'send' an email is called just after the pm is created, but if your're using the mail queue then it won't be sent right away.

pattycake
02-13-2014, 11:52 PM
It's sent just after the pm is created. Edit: well, the function to 'send' an email is called just after the pm is created, but if your're using the mail queue then it won't be sent right away.

i found it - thank you