This application isn't bundled with any XWiki product by default.
Application contributed by Guillaume Lerouge.
This application can be downloaded.

SendPageByEmail Application

A panel that gives an user the ability to send the current wiki page through email.

Summary

This application allows an user to send a wiki page by email. It uses the MailSender plugin's send HTML page method and the Show / hide DIV code snippet.

In order to work properly, it requires the following conditions to be met :

  • The MailSender plugin must be up & running on your wiki instance
  • You must have a SMTP server properly configured
  • The panel has to be saved by a user with programming rights.
It offers the ability to send any wiki page by email. The recipient's email can be typed in the recipient field. Clicking on the "more" button displays 3 additional fields : CC, BCC and COMMENT & 2 checkboxes : Include page comments and attachments.
  • CC & BCC work as usual carbon copy & blank carbon copy fields.
  • The comment field let an user add additional information that will be displayed on the top of the sent email along with the sender's name & the page's last modification date.
  • Ticking the "Include page comments" sends the page comments along with the page itself
  • Ticking the "Include page attachments" sends the page attachments along with the page
The email sent is the HTML version of the rendered content of the page the user is viewing. In case its email client does not support HTML emailing, the alt field is fed with the page's original wiki markup content. A page can be sent to several recipients provided their email addresses are comma-separated (people1@mail.com,people2@mail.com,...).

Images

The panel in its default state.

SmallPanel.png

The full panel displaying more options when opened.

IncludeStuff.png

The panel when the email has been sent properly.

Success.png

The panel when the email has not been sent.

Failure.png

The resulting HTML email.

HTMLEmail.png

The resulting HTML email when an image is attached to the page.

HTMLEmailWithImage.png

Version 21.3 last modified by GuillaumeLerouge on 11/04/2008 at 01:10

Comments 2

vbailur | 10.04.2008 at 07:17 PM
There is a bug in this application. I am using xwiki version 1.3.1.8931 with the XAR downloaded from this site. When sending the page by email - the from address is constructed using the $xwiki.getuserName($context.user, false) which is first_name + space + last_name instead of the email. So there is an exception thrown by the application saying illegal whitespace in the email. This script needs to be modified to retrieve the xwikistrings value using key email instead.

ERROR mailsender.MailSenderPlugin - sendHtmlMessage javax.mail.internet.AddressException: Illegal whitespace in address in string ''Administrator XWiki''


rrodriguez | 11.04.2008 at 01:10 AM
You must want to follow this thread...

http://tinyurl.com/5ztkny

Attachments 6

Image
IncludeStuff.png 1.1
PostedBy: GuillaumeLerouge on 06/02/2008 (24kb )
Image
Success.png 1.1
PostedBy: GuillaumeLerouge on 05/02/2008 (18kb )
Image
Failure.png 1.1
PostedBy: GuillaumeLerouge on 05/02/2008 (22kb )
Image
HTMLEmail.png 1.1
PostedBy: GuillaumeLerouge on 05/02/2008 (27kb )
Image
HTMLEmailWithImage.png 1.1
PostedBy: GuillaumeLerouge on 05/02/2008 (83kb )
Image
SmallPanel.png 1.1
PostedBy: GuillaumeLerouge on 05/02/2008 (16kb )

Creator: GuillaumeLerouge on 2008/02/05 09:02
This wiki is licensed under a Creative Commons license
1.4.1.10194