use loginname to send notification mails. fixes #10.

@jone can you take a look at this? It now uses the loginname to send the userinfos instead of the userid.