E-mailing
Report Output to User (Method 1)
We can send
alerts and reports to users via email by configuring a printer to
call an operating system script to send email. Following
is the procedure.
1. Define two printer
styles (portrait and landscape).
2. Define a printer
driver to call your os script.
In the arguments
field enter the syntax for calling an operating system script for
your environment with the parameters for filename, username and title (subject).
UNIX: $CUSTOM_TOP/bin/email.sh
$PROFILES$.FILENAME
$PROFILES$.USERNAME $PROFILES$.TITLE
3. Assign printer
to the two print styles and the driver
4. Register the
printer called email_p.
5. Default your report
or alert to use the email printer as a shell script.
Sample Unix script
email.sh
#!/bin/ksh
email_addr=$2@hotmail.com
mailx –s “$3” $email_addr
< $1
exit 0
$1 is The FileName.
$2 is The E-mail
Address.
$3 is Subject/Title
of Mail.
Have a Oracle Question
Do
you have an Oracle Question?
Oracle Books
Oracle
Certification, Database Administration, SQL, Application, Programming Reference
Books
Oracle Application
Oracle
Application Hints and Tips
Oracle Home
Oracle
Database, SQL, Application, Programming Tips
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
companies.
The site www.erpgreat.com is not affiliated with or endorsed
by any company listed at this site.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.erpgreat.com or the content authors.
|