Re: [xwiki-users] some problems with SendPageByEmail Application

2008-03-31 Thread Guillaume Lerouge
Oops! I've just tried with guest without doing this change and it allowed me to send messages... :-( Could you figure out why? From field: XWikiGuest. Fixed ;-) http://code.xwiki.org/xwiki/bin/download/Applications/SendPageByEmailApplicationDownloads/Panels.SendPageByEmail3.xar Guillaume

Re: [xwiki-users] some problems with SendPageByEmail Application

2008-03-31 Thread Guillaume Lerouge
Hi Ricardo, Any Velocity statement I've tried with generates the same error. Perhaps if must be avoided to send Velocity code and send instead a warning or something like that. Just an idea. It seems that $doc.getRenderedContent() doesn't like this Velocity stuff. Please, do you know how

Re: [xwiki-users] some problems with SendPageByEmail Application

2008-03-31 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi! Guillaume Lerouge wrote: Guillaume First works fine with other Velocity, but not for pages including the force skin trick as it get redirected to the page holding the snippet. Use #includeInContext('Other.Page') instead. Works fine for getting the page included, but

[xwiki-users] some problems with SendPageByEmail Application

2008-03-30 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi, I am afraid this is mainly addressed to Guillaume :-( 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

Re: [xwiki-users] some problems with SendPageByEmail Application

2008-03-30 Thread Guillaume Lerouge
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

Re: [xwiki-users] some problems with SendPageByEmail Application

2008-03-30 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
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

Re: [xwiki-users] some problems with SendPageByEmail Application

2008-03-30 Thread Guillaume Lerouge
Re, 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? Right now guests are presented with you need to be logged in to use this feature message bcoz I was afraid of spam thru too many people clicking