### To mail

If you want to send the results of a report in a report set 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 report set to mail, only the current specified report of a report set 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 according to your requirements.
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 set that contains the report you want to export.
2. On the report tab bar, click the tab that represents the report.
3. Click File > Export To > Mail to access the Export to Mail dialog. See the dialog.

4. Specify addresses for TO, CC, BCC according to your requirements.
5. Input the mail subject in the Subject field.
6. If your SMTP server requires authentication, specify the required information in the SMTP Logon Information panel.
7. 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.
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. 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.