Thank you! That was easier than I thought.
But I have a problem still. When i send the notification to another mail-adress on my server it works as it should, but when I try to send it to a external (gmail.com) adress it doesnt work. Any ideas what i need to do to get it to work to a external adress?