Thanks Sergiu - I didn't realise that the interval wasn't set by default -
its not as clear as it could be in the documentation - perhaps users should
be warned in a popup message when they set a watch on a page and the
interval hasn't been set to remind them?

As for the other issue with sharing a page .... Then I'll just have to
upgrade to the latest Xwiki.

Thanks again

Richard

 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Sergiu Dumitriu
Sent: 13 July 2011 17:58
To: XWiki Users
Subject: Re: [xwiki-users] XWiki email not working

On 07/13/2011 03:13 AM, goldring, richard wrote:
> Hi All,
>
> I'm still not able to email using Email a wiki page or via the Watch 
> plugin.....
>
> I've set up my email server (sendmail) on my Solaris server and set 
> the appropriate setting in XWiki to talk to it and using the code 
> below (taken from the XWiki website) to successfully send an email 
> (presumably this uses the email plugin??) :
>
> {{velocity}}
> #if($xwiki.hasAccessLevel('admin'))
> #if("$!{request.action}" == 'send_mail'&&  "$!{request.lastname}" == '')
>    ## Check submission and honey pot.
>    #if("$!request.recipient" != ''&&  "$!request.subject" != '')
>      #set($result = 
> $xwiki.mailsender.sendTextMessage("[email protected]
> <mailto:[email protected]>  ", $request.recipient, $request.subject,
> "$!request.message"))
>      #if($result == -1)
>      {{error}}A problem occurred while sending the mail.{{/error}}
>      #else
>      {{info}}Everything went OK.{{/info}}
>      #end
>    #else
>      {{error}}Please specify at least a recipient and a subject{{/error}}
>    #end
> #end
>
> {{html wiki=true}}
> <form action="" method="post">
>   <input name="action" value="send_mail" type="hidden" />
>    ## this is a honey-pot hidden text field hat hopefully robots will 
> not leave empty
>   <div class="hidden">
>   <input name="lastname" type="text" />
>   </div>
>   <fieldset>
>      **TO:**<br />
>     <input type="text" name="recipient" /><br />
>      **SUBJECT:**<br />
>     <input type="text" name="subject" /><br />
>      **MESSAGE:**<br />
>     <textarea name="message" style="width:99%;" rows=10>Your test 
> message here.</textarea>
>   </fieldset>
>   <div>
>     <span class="buttonwrapper"><input type="submit" class="button"
> value="Send" /></span>
>   </div>
> </form>
> {{/html}}
> #else
> {{error}}Oops. Area restricted to Admins, sorry.{{/error}} #end 
> {{/velocity}}
>
>
> BUT ..... in my XWiki wiki (I have the latest version) when I select 
> to email a wiki page and press the Send button nothing seems to happen 
> (I assume the email dialog should close when you press the Send button 
> and an email should be sent), also when adding a Watch on the wiki or 
> wiki page and the page is changed then no email is sent to the user 
> who has put the watch on the page .... does anyone know why the emails
aren't getting sent????

For the watch problem, check that the user has selected a valid watchlist
interval, since by default all users have the watchlist emailer disabled.
You can do that by going to your profile, and editing the preferences on the
Watchlist tab.

> Having the facility to email a wiki page and to watch wiki pages would 
> certainly help get more people to use our wiki.
>
> Any clues for fixing this would be most appreciated!
>
> Thanks.
>
> Richard


--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on sender's telephone number above
and delete it and all copies from your system. We accept no responsibility
for changes to any e-mail which occur after it has been sent.  Attachments
to this e-mail may contain software viruses which could damage your system.
We therefore recommend you virus-check all attachments before opening.
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to