As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
Connect to myibi
posted October 17, 2006 02:44 PM
I've been using the !mailx command for quite some time. Always the file I send ends up as
the body of the email. !mailx -s "WORKORDERDETAIL OUT OF BALANCE" firstname.lastname@example.org < &FNAME Does anyone know how to use !mailx with an attachement? It will be a PDF file. Thanks, Jim Version 5.33 Unix Solaris
Posts: | Location: 43 San Jose, California. | Registered: July 18, 2005
posted October 17, 2006 03:22 PM
is a non-WebFOCUS UNIX command.
Check Google or start here:
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Posts: | Location: 10577 Toronto, Ontario, Canada | Registered: April 27, 2005
posted October 17, 2006 06:25 PM
I have used elm to do this. I wasn't able to figure out how to do it with mailx. I call a Unix script from Webfocus
-SET &UNIXARG=&DEST.&N2 || ' "'|| &FILENAME || '" "' || &SUBJECT || '" "' || &BODY || '"';
-UNIX dclnotice.send &UNIXARG
In the Unix script
echo " $BODY \n " > $WRKFILE
echo "[include $ATTACH application/octet-stream base64 ] " >> $WRKFILE
cat $WRKFILE | elm -s "$SUBJECT" $MAILTO
(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
Posts: | Location: 391 California | Registered: April 14, 2003
posted October 18, 2006 10:14 AM
Also, check out the 'mpack' command. You may have to download the source and compile it if it's not on your machine, but I use it all the time with great results.
posted October 26, 2006 02:07 PM
Thank you all for your suggestions. Appreciate the help.
I will try them out and see how they work and let you know.
My site: WebFocus 5.33 Unix Solaris 5.8 DataBase - Oracle 9i2
Posts: | Location: 7 San Francisco | Registered: July 27, 2005 Read-Only Topic
Copyright © 1996-2020 Information Builders