Hi Richard, 2009/4/2 Ryszard Łach <[email protected]>
W dniu 2 kwietnia 2009 13:53 użytkownik Guillaume Lerouge < [email protected]> napisał:
What elsecan I check?
Are you in a XWiki Enterprise Manager instance? In this case $context.user would be something like xwiki:XWiki.rlach which means only the first 6 chars would be trimmed, resulting in XWiki.rlach to be displayed. What does $context.user returns on your page? Guillaume
xwiki:XWiki.rlach
I've tried to trim 12 chars, but it also does not change my login name to email:
com.sun.mail.smtp.SMTPSendFailedException: 501 <rlach>: sender address must contain a domain
Try with: set($sender = ${context.user.substring(12)}@${request.serverName.substring(4)}) Here I've put 4 as I assumed your domain name would be "www.something.com" If your domain name is "somethingelse.something.com" you'll need to change 4 to 14 (the number of chars in "somethingelse" + the ".") Hope this helps, Guillaume
R.
-- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/