You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/tdejava/koala/examples/simplemail/SimpleMailer.java

40 lines
1.0 KiB

//package com.werpu.simplemail;
import org.trinitydesktop.qt.*;
import org.trinitydesktop.koala.*;
/**
*
* @author Werner Punz werpu@gmx.at
* This is a simple mailer to demonstrate the connection
* of KDE Java with java packages.
* It demonstrates the connection between KDEJava and the javamail API
* to send mails from a KDE Application box via the SMTP protocol
* Note:The javamail and activation jar files have to be in your classpath!
*
*/
public class SimpleMailer extends TDEApplication{
static {
qtjava.initialize();
tdejava.initialize();
}
public SimpleMailer() {
super();
SimpleMailFrm mainWidget = new SimpleMailFrm(this);
this.setMainWidget(mainWidget);
mainWidget.show();
this.exec();
}
/**
* Entry point for the program
*/
public static void main(String [] argv) {
TDECmdLineArgs.init(argv, "simplemailer", "SimpleMailer",
"Simple Mailing Application", "0.1");
SimpleMailer mailClnt = new SimpleMailer();
}
}