edu.pdx.cs399J.examples
Class MailFile
java.lang.Object
edu.pdx.cs399J.examples.MailFile
public class MailFile
- extends Object
This program uses the JavaMail API to send a file to someone as a
MIME attachment to an email. More information about the JavaMail
API is available from http://java.sun.com/products/javamail.
- Author:
- David Whitlock
|
Method Summary |
static void |
main(String[] args)
Reads the name of the file to be sent, the recipient of the
email, and the subject of the email (which may contain multiple
words) from the command line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailFile
public MailFile()
main
public static void main(String[] args)
- Reads the name of the file to be sent, the recipient of the
email, and the subject of the email (which may contain multiple
words) from the command line. Then uses the JavaMail API to
construct an email message.
Copyright © 2000-2009 Portland State University. All Rights Reserved.