|
I have a tool online called RPGMail that interfaces to the JavaMail API's from RPG. It is freely available and best of all doesn't require the iSeries SMTP server. You can instead route the email to any smtp server you have access to. It is on this site: http://mowyourlawn.com HTH, Aaron Bartell -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of White Knight Sent: Thursday, June 23, 2005 11:46 AM To: java400-l@xxxxxxxxxxxx Subject: Help with sending an Iseries email with attachments Can anyone help me? I'd be eternally grateful :-) The Director of IS was thinking the iseries is an old legacy box, and could not even send email. I made the mistake of telling him the iseries is state of the art and CAN send email. Unfortunately, I now have a project due in 1 week to have some of our programs sending emails with attachments from the iseries. We are at V5R2. I managed, with some pain, to get the TCP SMTP configured, I can now use SNDDST to send email from the AS/400. But I can't use that to send an email with a PDF and CSV attachment from the IFS. So, I googled email and iseries, and found the Javamail page on the IBM website. First question is, is there a "blackbox" utility out there where I can have a CL program call the blackbox, passing a from, to, cc email address and the path to the attachment files, and it will take care of it? I tried reading through the documentation, and it seems overly complex to do something that seems fairly routine from a business perspective. I'm concerned I won't be able to support my case of state-of-the-art if it really is that cumbersome and complicated just to send an email. Anyway, the documentation on the IBM website says to install the files to the IFS. Where on the IFS?? In the root itself? In a subdirectory? Via Iseries Navigator, I created a directory off of root called javamail and put all the files there (from the javamail area on the Sun website). So, mail.jar and activation.jar are in these directories. When I run the examples given on the IBM website, I get a classpath error. The Classpath they define in their example is '.:/home/mail.jar:/home/activation.jar' Since the mail.jar is in a directory called javamail, I assumed I would substitute "home" for "javamail" in the classpath statement. No dice. Can anyone help? If this question is too basic for this discussion group, please contact me offline wknight2@xxxxxxxxxxxxx I really need some help, I've struggled with this for 2 days and my stress level is off the charts. I tried reading the java docs on the Sun website, but I am 100% new to Java and it is way over my head. I just assumed there were some simple to use utilities out there for this or pre-built routines that you just pass parameters too, or that the documentation would be more specific. I do realize I need to buy a book on Iseries Java, but I don't know if it will cover getting email to work or if I can learn what I need to learn in time. Again, I would REALLY be grateful if someone has a few minutes to get me off and running with this. Thanks in advance! Ed
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.