I myself don't know, that's why I linked you the source ;) If someone else knows the magic maybe they can help you.
Caleb On 05/11/2011 03:22 AM, Alexey wrote: > Thank you for clarifying the part concerning the mail sender plugin! > > I could not find file attachments being used in the invitation application > however, could somebody explain how I can implement uploading files and > attaching them to the email? > > > On Wed, May 11, 2011 at 9:37 AM, Caleb James DeLisle < > calebdeli...@lavabit.com> wrote: > >> The mail sender plugin does use the obsolete plugin mechanism rather than >> the new component system. >> There is however no replacement for it so it is still the current method of >> sending email. >> Here's the code for it: >> >> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-mailsender/src/main/java/com/xpn/xwiki/plugin/mailsender/MailSenderPluginApi.java >> >> You might find the invitation application helpful since that sends mail >> using the mail sender. >> >> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-invitation/src/main/resources/Invitation/WebHome.xml#L818 >> >> Caleb >> >> On 05/07/2011 05:19 AM, Alexey wrote: >>> Hello. >>> >>> I need to make a page where a person could send an email with an >> attachment >>> to a predefined address. >>> So basically i need a input field that would allow to choose a file to >>> attach, then the file would be uploaded to the server and sent as an >>> attachment. >>> >>> I've found this extension >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Sender+Plugin, >> but >>> it seems to be obsolete. >>> >>> I'm not sure how to store the file before sending it as an attachment, >> any >>> suggestions? >>> >>> Another possible issue is that i have an old version (1.3) of XWiki. >>> >>> What is the best way to approach this task? >>> >>> I would appreciate any pointers, links and suggestions! >>> >>> Thank you for your help. >>> _______________________________________________ >>> 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 >> > > > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users