|
Rob, A couple of thoughts: 1. Be sure to convert to ASCII character set on the CPYTOSTMF command. You can leave the option of *AUTO or use a table name. If you use a table name be sure to put it in IPCS format (QSYS.LIB/MYLIB.LIB/MYTABLE.TBL for example). 2. Depending on what you are doing with your file you will probably also want to specify that the CPYSTMF command add a Carriage Return and Line Feed to the end of the lines (ENDLINFMT(*CRLF)). Patrick Rob Berendt wrote: > > Many thanks to those whose earlier email inspired me to use this. I've been >using SNDDST. Frustrations with SNDDST include the mandatory Subject line >that is ignored, this is a bug in my mind. Also lack of formatting on a >simple message. > > I've received some sample RPGLE code from one of the Redbook authors and it >is a start. > > Thanks to Patrick Townsend for pointing out that QtmmSendMail is in the >service program QTMMSNDM. I've wrote the books people that this should be >included in the manual. This was my first RPGLE program that I bound a >service program into. (Good thing I am in the middle of taking that ATS RPGLE >course!) > > The problems I am having are twofold. > > Problem 1) Getting the QSYS system file into the IFS. I used CPYTOSTMF. >However when I opened the file using Notepad it was all hieroglyphics. What >options should I be using on the CPYTOSTMF command? > > Problem 2) Format of the file to send. At first I typed in 'Hi ya' in the >IFS file using Notepad. I never received the email. Then I typed in: > From: rob@dekko.com > To: rob@dekko.com > Subject: Test > This is a test. > > I received the From, To and the subject. (Tangent, both of the rob@dekko.com >got translated into Rob Berendt/DEKKO@DEKKO when it came into my Notes.) I >never received the body of my message. Am I missing some keyword such as >Body:? > > Group Dekko Services, LLC > Rob Berendt, CCP > Dept 01.073 > PO Box 2000 > Kendallville IN 46755 > 219.347.3100 ext 70560 > 219.349.2005 fax > rob@dekko.com > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- -- Patrick Townsend mailto:townsend@patownsend.com Patrick Townsend & Associates, Inc. http://www.patownsend.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.