Class Mailer
java.lang.Object
|
+----java.lang.Thread
|
+----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()
-
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()
- Overrides:
- run in class Thread