Hi Brandon, here is how we use it:
$mail = "Content-type: text/plain; charset=iso-8859-1${xwiki.nl}To: "YourEmailTarget"${xwiki.nl}Subject: "YourSubject"${xwiki.nl}${xwiki.nl}Actual Email Content${xwiki.nl}${xwiki.nl}"
Note the absence of spaces and the "" -> your answer may lie somewhere in there.
Hope this helps,
Guillaume
On 13/02/2008, Esbach, Brandon <Esbachb@tycoelectronics.com> wrote:
Updated to the suggested additional ${xwiki.nl} and it's just been
resaved (thanks Raffaello :) )
No difference - still no subject line.
-----Original Message-----
From: users-bounces@xwiki.org [mailto:users-bounces@xwiki.org] On Behalf
Of Sergiu Dumitriu
Sent: 12 February 2008 16:49
To: XWiki Users
Subject: Re: [xwiki-users] $xwiki.sendMessage
Try using two $xwiki.nl
Esbach, Brandon wrote:
> Hi Guillaume,
>
> I don't seem to be getting any subject when using this method; is
> there something else maybe restricting this?
>
> ----------------------------------------------------------------------
> --
> *From:* users-bounces@xwiki.org [mailto:users-bounces@xwiki.org] *On
> Behalf Of *Guillaume Lerouge
> *Sent:* 06 February 2008 17:57
> *To:* XWiki Users
> *Subject:* Re: [xwiki-users] $xwiki.sendMessage
>
> Actually you can. You need to write this in your email :
>
> #set ($youremail = "Subject: Your Subject Here ${xwiki.nl
> <http://xwiki.nl>} Your Email Content")
>
> And then use $youremail in the $xwiki.sendMessage method as the email
> content parameter.
>
> Guillaume
>
> On 06/02/2008, *Esbach, Brandon* <Esbachb@tycoelectronics.com
> <mailto:Esbachb@tycoelectronics.com>> wrote:
>
> No problem, I understand.
> Is it likely that sendMessage will also become disabled? Or, is
> there a way to add in the subject to the sendMessage call?
>
>
------------------------------------------------------------------------
> *From:* users-bounces@xwiki.org <mailto:users-bounces@xwiki.org>
> [mailto:users-bounces@xwiki.org <mailto:users-bounces@xwiki.org>]
> *On Behalf Of *Guillaume Lerouge
> *Sent:* 06 February 2008 17:48
> *To:* XWiki Users
> *Subject:* Re: [xwiki-users] $xwiki.sendMessage
>
>
> Hi,
>
>
> I think the plugin hasn't been activated on the farm for fear of
> people using it to send spam messages... I talked to our admin
about
> it but he thinks it wouldn't be safe to do otherwise.
>
>
> Sorry about that...
>
>
> Guillaume
>
> On 06/02/2008, *Esbach, Brandon* <Esbachb@tycoelectronics.com
> <mailto:Esbachb@tycoelectronics.com>> wrote:
>
> Hi,
>
> Doesn't seem to be installed on the farm, do I need to
> specifically request the plugin to be activated for the
virtual
> wiki, or do I need to import a xar for it to work?
>
>
------------------------------------------------------------------------
> *From:* users-bounces@xwiki.org
<mailto:users-bounces@xwiki.org>
> [mailto:users-bounces@xwiki.org
> <mailto:users-bounces@xwiki.org>] *On Behalf Of *Esbach,
Brandon
> *Sent:* 06 February 2008 15:46
>
> *To:* XWiki Users
> *Subject:* Re: [xwiki-users] $xwiki.sendMessage
>
>
> Hi Guillaume,
>
> This is for the hosted wiki on the wiki farm. Is this plugin
> working there?
>
>
------------------------------------------------------------------------
> *From:* users-bounces@xwiki.org
<mailto:users-bounces@xwiki.org>
> [mailto:users-bounces@xwiki.org
> <mailto:users-bounces@xwiki.org>] *On Behalf Of *Guillaume
Lerouge
> *Sent:* 06 February 2008 15:06
> *To:* XWiki Users
> *Subject:* Re: [xwiki-users] $xwiki.sendMessage
>
>
> Hi Brandon,
>
>
> This method has been deprecated in favor of using the Mail
> Sender Plugin
> (
http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin ).
>
>
> The plugin offers 4 different methods, some of them allows you
> to set the subject of your email.
>
>
> Check the example described at the end of the page for a live
> example.
>
>
> Guillaume
>
> On 06/02/2008, *Esbach, Brandon* <Esbachb@tycoelectronics.com
> <mailto:Esbachb@tycoelectronics.com>> wrote:
>
> Hi guys..
>
> Can't seem to find in the api any means to set the subject
> for a message being sent using this method - is this not
> possible?
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
http://wikibc.blogspot.com/