30 Mar
2008
30 Mar
'08
11:08 p.m.
Thanks Guillaume, Guillaume Lerouge wrote:
Thanks for pointing the problem out. Till I come up with a better solution, you can do the following :
Replace #set($sender = $xwiki.getUserName($context.user, false)) with #set($sender = $context.user.substring(6)) .
It will look less good as you'll get "UserName" instead of "User Name" but at least it should work. I guess it's written somewhere in the SMTP spec that email addresses shall not have spaces within them :-)
I'll update the XAR on XWiki.org accordingly.
Guillaume
Done. It now works fine. Could it perhaps be suitable to include the sender email address for registered users and the Admin email for guest? Cheers, Ricardo -- Ricardo RodrÃguez Your EPEC Network ICT Team