edu.pdx.cs399J.examples
Class MailFile

java.lang.Object
  extended by 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

Constructor Summary
MailFile()
           
 
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
 

Constructor Detail

MailFile

public MailFile()
Method Detail

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.