All Packages Class Hierarchy This Package Previous Next Index
Class tejas.Mailer
java.lang.Object
|
+----java.lang.Thread
|
+----tejas.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, String, String)
- Stores e-mail address and message body.
-
run()
- If this thread was constructed using a separate
Runnable run object, then that
Runnable object's run method is called;
otherwise, this method does nothing and returns.
Mailer
public Mailer(String from,
String addr,
String subject,
String body)
- Stores e-mail address and message body.
- Parameters:
- from - whom the mail comes from
- addr - e-mail address in string format
- subject - subject of email
- 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()
- If this thread was constructed using a separate
Runnable run object, then that
Runnable object's run method is called;
otherwise, this method does nothing and returns.
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index