// Approach 2:  Testing Shell

import java.io.*;
import java.net.*;

public class InstructorNotifier2 {

    public void notifyEmail (String username, 
                           String results,
                           String addressee) throws IOException {
        sendEmail (addressee, username+"grinnell.edu", "Test Message", results);
    }

    public void sendEmail (String addressee,
                             String sender,
                             String messageSubject,
                             String messageBody)  throws IOException {

        SimpleOutput out = new SimpleOutput ();
        out.println ("InstructorNotifier2::sendEmail called with parameters:");
        out.println ("     addressee:  " + addressee);
        out.println ("     sender:  " + sender);
        out.println ("     Subject:  " + messageSubject);
        out.println ("     message body:  " + messageBody);
        out.println ("InstructorNotifier2 done (without sending e-mail)");
    }
    

}// end class
