Class Mailer
java.lang.Object
Mailer
- public class Mailer
- extends Object
This program sends mails. Call it by
java Mailer filename
where filename designs the file containing the data. For exemple, the
following file:
mail.cui.unige.ch
sven@etu.unige.ch, Liam.Bron@cui.unige.ch
Donald.Duck@disney.com
You won a price!
picture.jpg
Hi!
Please visit me at http://disney.go.com/ asap!
See you!
Donald
will use "mail.cui.unige.ch" as mail server to send
TO: sven@etu.unige.ch, Liam.Bron@cui.unige.ch
FROM: Donald.Duck@disney.com
SUBJECT: You won a price!
ATTACHMENTS: picture.jpg (if no attachment, write "-")
BODY: the rest of the file
Note that this program needs mail.jar and activation.jar (javamail).
- Version:
- 0.1
- Author:
- Michel Deriaz
Mailer
public Mailer(String filename)
main
public static void main(String[] args)