Ah I already find what I did wrong. Thank you for the code!
Another question I have:
I am testing the Front end PM system but when I add a new announcement the notification mail isn’t sending. The system says the email has been send but I didn’t get anything in my email inbox.
Can you help me with this?