Fred, if your already having the iSeries convert the spool file to PDF why not just save the PDF file to the IFS and skip the e-mail part? If you're using Infoprint server I think it can save to the IFS instead of send an e-mail
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Fred Horvat
Sent: Tuesday, October 28, 2008 3:52 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: How to automate the receipt of an e-mail and detach an attachmentto a folder in the IFS?
Well you can do this from Windows with Outlook and a piece of software from
Sperry Software.
http://www.sperrysoftware.com/Outlook/default.asp
Map your IFS to your PC.
When receiving specific E-mails configured via rules all attachments will go
to the desired folder in this case to the IFS.
I use this software to archive Nightly G/L Reports. I setup a program on
the iSeries to read through certain OUTQs and E-mail me the reports as PDF
files. When I receive these PDFs E-mail I have them go to a specific
folder. I also have the rule setup once they are moved to the desired place
to delete the E-mail in Outlook.
May not be exactly what you are looking for but it works great for me.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Tuesday, October 28, 2008 3:16 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: How to automate the receipt of an e-mail and detach an
attachmentto a folder in the IFS?
Hello,
It shold be easy either with Java or reading the IFS from RPG. The
question is to know in which directory the mails are stored.
I think it is a very bad idea to go to an outside solution just
because you don't know the directory.
I think it's a bad idea to learn which directory a particular piece of
software stores it's data in, and then try to read the contents directly
from that directory!
You should be using a sanctioned interface. Either set up an MSF exit
point, or a POP3 client that gets the message and processes it.
Don't try to read the raw data directly! If they change anything in the
way it works, it'd break your application! Easy/400 has a POP3 program
available for free if you're scared of writing your own.
Not sure if they have tools for interpreting the MIME format or decoding
attachments, though. I do have a base64 decoder (which is a part of it, but
not all of it) on my site if you like.
For a long time I've been planning to write a MAILAPI toolkit to go with my
existing FTPAPI and HTTPAPI tools to provide native RPG e-mail APIs, but I
never seem to have time to work on it. If only I could be cloned!
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.