Advertisement
Guest User

emailsender

a guest
Jan 28th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. package EmailSender;
  2.  
  3. public class EmailSender {
  4. static String emailname;
  5. static String messagename;
  6. public static void main (String[] args) {
  7.  
  8. InterfaceCode frame = new InterfaceCode();
  9. frame.setVisible(true);
  10.  
  11. String[] to = {"Maurits_100@hotmail.com"};
  12.  
  13. if(SendEmail.sendMail("bombertest100@gmail.com","op6ih5a3qk9hg",messagename, to))
  14. System.out.println("email send succesfully");
  15. else System.out.println("Error, Email didn't sended.");
  16. {
  17.  
  18.  
  19. }
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement