× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Paul

I did something along similar lines a few years ago. Going from memory, I
built the email by initially writing the data I was extracting to a physical
file with a single field with a record length of 80 or whatever characters.
When I had completed writing events to the file I copied the physical file
to a document folder via CPYTOPCDOC and then used that as the email text (I
don't remember which parameter in the SNDDST command I had this in).

You could add a step in at that point which also copied the details into a
file in the IFS to store what was sent, however it would not have details of
who it was sent to and when it was sent to as it would be a copy of the
text, not a copy of the actual email itself. You would also need to think
about how you would name the file in the IFS to give it meaning.

If you are using a particular account to send from you may be able to get
whoever manages the email server that does the actual transmission to write
a script that catches emails sent from that account and provides an audit
trail if you need more details than just the message text. Something like
"All mail sent from account such and such is stored here". This has the
advantage that it has some additional transmission data and potentially
could even have read receipts or delivery receipts included...

If my explanation of the iSeries code is not enough let me know and I'll go
look at the details (they are on a customer system) otherwise good luck ! I
think you should be able hand this one off to whoever managers your mail
server though...

Regards
Evan Harris


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Paul Jackson
Sent: Wednesday, 18 March 2009 6:55 a.m.
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: SNDDST to IFS?

Greetings,

I have a process that monitors for system value changes and sends out
an email via the SNDDST command whenever a change is detected. One of
our admins saves each of the emails from Outlook into a network drive
mapped in the IFS where they appear as .msg type files.

We are wondering if this process can be automated somehow so that the
monitor program can automatically put a copy of the email into the IFS
location?

Any suggestions would be appreciated.

Thanks!
-Paul

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.