1 Reply Latest reply on Sep 28, 2008 6:17 PM by 807589

    SMTP help

    807589
      I am very new to java and I have to take a Networking class. I need some very basic help and need somebody to help me get started in the right direction. Our assignment is just to send a hard coded email using SMTP. Here is the code that I have to start with:

      class testSMTP {
      public static void main(String argv[]) throws Exception
      {

      SMTPSender s = new SMTPSender("EMAIL HOST");

      s.setToAddress("NAME@HOST.edu");
      s.setFromAddress("YOURNAME@utm.edu");
      s.setSubject("Testing 123");
      s.setBody("This is a test from YOUR FULL NAME!!!!");

      s.sendMessage();
      }
      }


      How do I get this started? I'm not asking for somebody to do my homework for me, but just to help. I am using JCreator LE.

      Thanks