org.activemath.util
Class Email

java.lang.Object
  extended by org.activemath.util.Email
All Implemented Interfaces:
Runnable

public class Email
extends Object
implements Runnable

A simple class to send emails through an SMTP server using the simple rules of RFC 873 (or 823 ?). Supports only plain text sending...


Field Summary
protected  String bcc
           
protected  String cc
           
 Throwable exception
           
protected  String from
           
 long loadDate
           
protected  String message
           
protected  String[] recipients
           
protected  String smtpServer
           
protected  String subject
           
protected static Logger thisLogCat
           
 Thread thread
           
protected  String to
           
 
Constructor Summary
Email(String smtpServer, String from, String to, String bcc, String cc, String subject, String message)
           
 
Method Summary
static void main(String[] args)
           
protected  void prepareRecipients()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadDate

public final long loadDate

smtpServer

protected final String smtpServer

from

protected final String from

to

protected final String to

bcc

protected final String bcc

cc

protected final String cc

subject

protected final String subject

message

protected final String message

thread

public final Thread thread

exception

public Throwable exception

recipients

protected String[] recipients

thisLogCat

protected static Logger thisLogCat
Constructor Detail

Email

public Email(String smtpServer,
             String from,
             String to,
             String bcc,
             String cc,
             String subject,
             String message)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

prepareRecipients

protected void prepareRecipients()

main

public static void main(String[] args)