This example is located under the following directory:
<alphablox>/system/ApplicationStudio/Examples/EMail
where <alphablox> is the Alphablox installation directory.
You can refer to this example as a starting point for creating your own email capability, or you can copy and modify the files in order to embed the functionality in your applications. For more information, see Implementation and Configuration.
The example consists of the following files:
emailExample.jsp | A very simple page consisting of a single PresentBlox and an 'email' button (.gif file). |
emailDialog.html | The end-user email dialog (displayed when the 'email' button is clicked). |
styles1.css | The cascading style sheet for the email dialog box. |
images\emailBlox.gif images\grid-bg.gif |
Images used by the email dialog. |
emailTemplate.jsp | The file that is actually emailed. It contains standard HTML, and static representations of Blox (Blox with their render mode set to 'printer'). |
emailSend.jsp | The JSP page that actually creates an EmailBean, sends the email, and generates an HTML response. |
emailError.jsp | The error page for the emailSend page. If something goes wrong trying to send the email, the error information will be displayed in this page. |
alphablox.EMailBean.class | The Java Bean that does the emailing. This file must reside in the WEB-INF\classes\alphablox directory of the WebApp where this application is installed. |
alphablox.HTMLFileParser.class | The Java Bean that converts an HTML page into mime-encoded email body parts. This file must reside in the WEB-INF\classes\alphablox directory of the WebApp where this application is installed. |
alphablox.HTMLFile.class | The helper class for the HTMLFileParser bean. It must be located in the same directory as HTMLFileParser.class file. |