//To test the Emailer class. static public void main( String[] args ) { try { Emailer ec = new Emailer(); CustomerInfo cust = new CustomerInfo(); cust.setEmail("TEST-EMAIL-ADDRESS"); Order order = new Order(); order.setCustomerInfo(cust); ec.sendConfirmation( order ); } catch( Exception e ) { } } }
And then I was told that : The mail package is not part of the Java SDK, you can get the latest version from:
But, I don't have a clue how to make this file work at all, even after reading the guide.
Please advise me what should I do in order to make this particular file work, for I am really keen to include a java mail inside my application. Now, I am using a form-based enquiry which doesn't include time-stamp etc.