Right, I was thinking about the plugin, not XWiki.sendMessage...
This code snippet might help you :
## Email #set ($objet = "Hello World") #set ($mail = "Content-type:
text/plain; charset=iso-8859-1${xwiki.nl}To: ${emailtarget}${xwiki.nl}Subject:
${objet}${xwiki.nl}${xwiki.nl} Enter message text here ${xwiki.nl} ")
$xwiki.sendMessage($[emailsrc], ${emailtarget}, $mail)
where ${emailsrc} & ${emailtarget} are already defined mail addresses (such
as "bobby(a)stark.com" )
It works on a public website...
Guillaume
On Fri, Jun 13, 2008 at 12:55 PM, Lilianne E. Blaze <
lilianne(a)lilianne-blaze.net> wrote:
  Hello,
 Vincent Massol wrote:
  On Jun 13, 2008, at 11:17 AM, Lilianne E. Blaze
wrote:
  Hello,
 Vincent Massol wrote:
 > 2) It needed mailsender plugin moved from
plugins module to core
> module
> to avoid circulars and other nasties.
 We need to find a solution for this since we'd like to keep the
 modules separate. This is actually our current effort: modularize
 XWiki and move everything to components.
 One solution for now could be to set a dependency on the last
 released
 version of core with a provided scope. 
 I'm not sure I get it. MailSender
depending on Core isn't the problem.
 The problem is Core depending on MailSender to get the glue code in
 XWiki.sendMessage working. 
 xwiki-core SNAPSHOT --> mailsender plugin SNAPSHOT version
 mailsender --> xwiki-core LATEST (i.e. 1.5M1 or 1.4.1) 
 Make Core snapshot depend on Mailsender snapshot and Mailsender snapshot
 depend on Core latest? Isn't that... unhealthy?
  I'm not sure my solution works with maven. It
might still create a
 circular dep but it's worth verifying it. 
 I'm not sure either if it's possible, I only recently started using Maven.
 But even if it is possible, it _will_ create a circular, and with
 different versions it's even more nasty. Having to build a previous
 version to build current version? It sounds more hackish than Windows'
 leaked alpha version. It should be possible to just check out the
 current version source and then build it on- or offline.
  Thanks
 -Vincent 
 Greetings, Lilianne
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs