All Packages Class Hierarchy This Package Previous Next Index
Class oncore.Mailer
java.lang.Object
|
+----java.lang.Thread
|
+----oncore.Mailer
- public class Mailer
- extends Thread
Class to send mail. This mailer runs as a thread so that other activities
are not blocked by the slow smtp server.
-
Mailer(String, String)
- Stores e-mail address and message body.
-
run()
- Calls the method mail to send the requested mail to user.
Mailer
public Mailer(String addr,
String body)
- Stores e-mail address and message body.
- Parameters:
- addr - e-mail address in string format
- body - message body. Should have header fields other that from,
to. e.g. SMTP doesn't define a header field called Subject but all
mail-reader programs recognize it. Such fields should be put at the
top of message body and after such fields two \n 's to seperate it from
main message body.
run
public void run()
- Calls the method mail to send the requested mail to user.
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index