Class MailFile

java.lang.Object
edu.pdx.cs410J.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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

  • Method Details

    • 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.