×
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 here is my code which works - I've built a RCP app that monitors iSeries
events and sends emails to a list of email addresses passed to a mailer
which splits out the email addresses as strings and then creates this object
calling the sendmail method of each object. All the from and to addresses
are just strings..
Granny and sucking eggs - here's the bit that creates the object and calls
the sendmail method.....there is also code in there to ping the smtp
server..I put all the println's in to see what's happening - I really am
originally a procedural coder (S36)...
if (smtpServerOnline()) {
System.out.println("SMTP Started");
String subject = "SysChecker Alert";
// Split addresses from list to String array
splitEmailList();
// The server is on-line - send emails
for (int i = 0; i < addresses.length; i++) {
// parse the destination addresses
System.out.println("Emailing " + addresses[i]);
Mailer mail = new Mailer(addresses[i], setMessage(),
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.