Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package vyuka;
- import java.net.*;
- import java.io.*;
- public class EmailSender {
- /*
- * Constructor opens Socket to host/port. If the Socket throws an exception during opening,
- * the exception is not handled in the constructor.
- */
- public EmailSender(String host, int port) throws UnknownHostException, IOException {
- }
- /*
- * sends email from an email address to an email address with some subject and text.
- * If the Socket throws an exception during sending, the exception is not handled by this method.
- */
- public void send(String from, String to, String subject, String text) throws IOException {
- }
- /*
- * sends QUIT and closes the socket
- */
- public void close() {
- }
- }
RAW Paste Data