Hi Ricardo,

I've downloaded the application, imported it, configured a SMTP server
> and saved the panel as admin. Admin itself can send pages without a
> glitch -great feature!- but whoever user I try fails but Admin. Admin
> was the only user just with first name. No last name.
>
> I've tried by creating other dummy user without last name and it can
> send pages without any problem.
>
> Please, could you figure out how to pass $sender to the mailSenderPlugin
> to allow blanks in the string? Am I missing any other point?
>

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
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to