property Elements of a Distribution XML File

20-22 Publishing Reports to the Web with Oracle Reports Services

20.5.2.4 E-Mail with External File as Body and Report as Attachment

The contents of the body for this email will be an external file, and the report will go along as an attachment. The path to the file is expressed differently for Windows and UNIX.

20.5.2.4.1 Windows

mail id=XQRSN to=accountingmycompany.com subject=Salaries body srcType=file include src=c:\mail\body.html body attach format=pdf name=salaries.pdf srcType=report include src=report attach mail

20.5.2.4.2 UNIX

mail id=XQRSN to=accountingmycompany.com subject=Salaries body srcType=file include src=mailbody.html body attach format=pdf name=salaries.pdf srcType=report include src=report attach mail

20.5.2.5 E-Mail with Whole Report and Grouped Sections Attached

In this example, recipients receive one e-mail with multiple attachments: one attachment for each group instance and an additional attachment that contains the entire report. If the report is grouped on department_id and there are four departments, recipients will receive five attachments: one for each department and one whole report. mail id=grx90 to=salesmycompany.com body srcType=textAttached you will find the summary report and breakdown by department of weekly totals. body attach format=rtf name=myAttach.rtf srcType=report include src=report attach foreach attach format=pdf name=myattach.pdf srcType=report instance=this include src=mainSection attach foreach mail

20.5.2.6 E-Mail to Relevant Manager and Department

In this example, the manager for department 10 gets department 10s report; the manager for department 20 gets department 20s report; and so on. For this tag set to be valid, the variable must refer to a column that is included in the repeat on group used with the attached section. That is, if the section repeats on G_department_id, manager must be a column in that group. foreach mail id=mgr1090 to=amp;lt;managergt;mycompany.com attach format=pdf name=attach.pdf srcType=report instance=this include src=mainSection