On 07/14/2011 03:08 AM, goldring, richard wrote:
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?
Yes, this is an annoying bug, it should be fixed by default. So, setting
an interval did solve the problem, right?
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: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] 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("no-reply(a)xwiki.com
<mailto:no-reply@xwiki.com> ", $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/