Hello,

Happy new year to everyone.

I'm trying to have the email of an user and I want to put it on every
document the user creates.

For that, I try this two differents codes :

#set($mail=$xwiki.getUser($doc.getCreator(), false).getEmail())

and an other try :

#set($user=$xwiki.getUser($doc.getCreator(), false))
#set($mail=$user.getEmail())

But none of this two codes is right. What should I do to have the email of
my user ?

Best regards,
Stéphanie



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Find-the-email-of-a-user-tp7146566p7146566.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to