### To mail

If you want to send the results of a report to other people, you can attach it to a mail. Be aware that before you can export the report results via e-mail, you must first have your report mail system configured. Otherwise, a warning message will be displayed when you try to export to mail. Here when exporting a page report to mail, only the current specified report tab of the report in JReport Designer will be exported.

#### Configuring the report mail system

To configure the report mail system, follow the steps below:

1. In JReport Designer, click File > Options.
2. In the Options dialog, select the Export to category.
3. In the E-mail tab, set up the SMTP Server, Port, Mail Box and Default Mail Format respectively.
4. Check the Server requires authentication if the mail server requires authentication.

   Note: If the mail server does not need authentication but you check the Server requires authentication, the mail may not be sent successfully due to the mail server.

5. Check Compress Attachment as Java Archive to compress the mail before sending out.
6. Click OK to finalize the changes.

#### Exporting the report results to mail

Now you can export your report results to mail as follows:

1. Open the report that you would like to export.
2. Click File > Export To > Mail to access the Export to Mail dialog. See the dialog.

3. Specify addresses for TO, CC, and BCC respectively.
4. Input the mail subject in the Subject field.
5. If your SMTP server requires authentication, specify the required information in the SMTP Logon Information box.
6. Enter some comments for the mail in the Comments text box, and what you write here will be shown in the text part of your mail.
7. If you are exporting a page report, in the Select Report Tabs box, select the report tabs in the page report you want to export. The selected report tabs will be exported in the list order. You can click or to change the order or the report tabs.
8. Select the required mail format and set the parameters for the format as required (for details about the parameter settings, refer to Export to Mail dialog).
9. Check Run Linked Report if you want to include the linked reports in your exported mail.
10. Click OK, and the report results will then be sent to the specified mail address. The recipient can open the mail normally, using Outlook Express, or any other mail processing product.

Note: If you select E-mail Result in HTML E-mail Format as the mail format, the comments that you input will be overwritten by the report.