destinations Elements of a Distribution XML File

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

20.4.4 body

Example On Windows mail id=a1 to=jsmithfoo.com subject=Results body srcType=file include src=c:\mail\body.html body mail On UNIX mail id=a1 to=jsmithfoo.com subject=Results body srcType=file include src=mailbody.html body mail RequiredOptional Optional. You can have a maximum of one body element associated with a given mail element. priority highest|high|normal| low|lowest Default: normal The e-mails delivery priority. returnRecei pt true|false Default: false Indication of whether the reply to individual or account should be notified when the e-mail is received. organizatio n string Optional. Variable values allowed. The name of the organization distributing the e-mail, for example: organization=Region 10 Sales Or organization=amp;department_name Note: For the mail element to work properly, the Reports Server must know which outgoing SMTP mail server to send mail to. You specify this information in the Reports Server configuration file rwserver.conf. This file has a pluginParam element where you can enter the name of a mail server. For example: pluginParam name=mailServer value=MAILSERVER property name=enableSSL value=yes pluginParam For more information, see Chapter 8, Configuring Oracle Reports Services . Table 20–2 Cont. Attributes of the mail Element Attribute Valid Values Description Creating Advanced Distributions 20-9 Description The body element acts as a sub-element to the mail element. It specifies the content or body of the e-mail. With body, you can type a text string between the open and close tags of the body element or use an include sub-element to specify either an external file, a report, or a section of a report. For example: mail id=a1 to=jsmithfoo.com subject=Results body srcType=text Attached are quarterly results. body … or mail id=a1 to=jsmithfoo.com subject=Results body srcType=file include src=d:reportsadminresults.html body … or mail id=a1 to=amp;lt;first_namegt;.amp;lt;last_namegt;myco.com subject=Quarterly Results body srcType=report format=html include src=headerSection body … The body element has three attributes: srcType, format, and instance, described in Table 20–3 .

20.4.5 attach

Example mail id=a1 to=jsmithfoo.com subject=Results body srcType=text Attached are quarterly results. body foreach