import SendMail;
import SimpleInput;
import SimpleOutput;
import ConnectionException;

public class TestSend {
    public static void main(String[] args)
	throws java.io.IOException, ConnectionException{
	SimpleInput in = new SimpleInput();
	SimpleOutput out = new SimpleOutput();
	SendMail mail = new SendMail();
	out.println("Enter the from address:");
	String from;
	from = in.readString();
	out.println("Enter the to address:");
	String to;
	to = in.readString();
	out.println("Enter the message:");
	String message;
	message = in.readString();
	mail.send(from, to, message);
	mail.bye();
	out.println("I sent your mail");
    }
}

