|
Hi i have used MMAIL to send emails from AS400 with success http://www-922.ibm.com/mmail/start Ashish --- "Himes, Jay" <jehimes@xxxxxxxxxxx> wrote: > You can use SNDDST to send attachments - this is a > snippet from a very > long CL program that sends email - it wouldn't be > too hard to roll your > own command based on it. > > CPY OBJ(&REFOUT) + > > TOOBJ('/QDLS/EMAIL/Refund.txt') + > > DTAFMT(*TEXT) REPLACE(*YES) > > SNDDST TYPE(*DOC) + > > TOINTNET((libertyrefunds@xxxxxxxxxxx)) > + > DSTD('Refund Header') DOC(REFUND.TXT) + > > FLR(EMAIL) > > > Can you post the full command you are using to call > your java and the > actual classpath? > > > > -----Original Message----- > From: java400-l-bounces@xxxxxxxxxxxx > [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of > White Knight > Sent: Thursday, June 23, 2005 12:46 PM > 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 > > > > > > > > > > > > -- > This is the Java Programming on and around the > iSeries / AS400 > (JAVA400-L) mailing list To post a message email: > JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx Before > posting, please take a > moment to review the archives at > http://archive.midrange.com/java400-l. > > > -- > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.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.