|
On Fri, 18 Jul 2003, Bartell, Aaron L. (TC) wrote: > > What are you talking about? The Java portion? I wrote it in Java because > whenever we rely on MSF (Mail Server Framework) it blows up and we end up > restarting it without retaining the existing queue entries (or whatever they > are called), which means we lose all of the emails that are waiting to be > sent out. We have 25+ iSeries machines that we support and MSF became such > a problem that we had to find a different way to send out email. I'm not familiar with MSF. I was suggesting that it write the mail via the SMTP protocol to a SMTP server. If you need to do mail using other protocols, then my ideas probably won't work. I guess I just assume everyone is using internet standard mail. I also don't use the AS/400 as my SMTP server. It's just not what the AS/400 is good at :) But that's not really relevant, a program can be made configurable so that it talks to any SMTP server, whether it's on the LAN or Internet or local machine is just a matter of specifying a different address. > Also, I don't have to deal with all of the restrictions that other software > out there has (limited attachments, limited recipients, etc). I already > knew Java, and the JavaMail API's do all the hard work for you. Huh? Why would you write software that has restrictions that you don't want? I'm suggesting writing it yourself, not using an existing package! > Besides, RPG doesn't scale well for these types of things, IMO. Like the > RPG XML parser I just got done writing; I wouldn't recommend parsing XML in > RPG, but if you don't have any other options, that parser is available and > works good. But, that parser isn't available. :) I've tried to install it! But, as far as writing statements like: Email_MsgFrom('klemscot@xxxxxxxxxxxxxxxxx'); Email_AddRecipient('aaron@xxxxxxxxxx'); Email_AddRecipient('rpg400-l@xxxxxxxxxxxx'); Email_Subject('Fun with salt shakers'); Email_BodyFile('/tmp/bigbody.txt'); Email_Attach('/tmp/happyboy.gif': 'IMAGE/GIF'); Email_Attach('/tmp/sillyreport.xls': 'APPLICATION/VND.MS-EXCEL'); if (Email_Send('smtp.klements.com') < 0); SndEscape(Email_Error); endif; I don't see why there'd be scalability issues there. If you're so keen to do your e-mail in Java, then why are you writing an RPG interface for it? It seems to me that your major problems is that you're mixing both RPG and Java. Do it purely in Java if you want Java.
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.