21 lines
482 B
Java
21 lines
482 B
Java
package smtpplz;
|
|
|
|
import java.io.*;
|
|
import java.net.*;
|
|
|
|
public class mailthing {
|
|
public static void main(String[] args) {
|
|
System.out.println("Starting up...");
|
|
try {
|
|
thegoodstuff gs = new thegoodstuff("smtp.utb.cz", 25);
|
|
gs.send_message("me", "you", "bs", "hey there");
|
|
|
|
} catch (UnknownHostException e) {
|
|
e.printStackTrace();
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
}
|