Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
How to email http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=56452 |
Page 1 of 1 |
Author: | nc426 [ Thu 19 Apr, 2018, 07:19 ] |
Post subject: | How to email |
i use code JFUtils utils = context.getUtils(); try { Future<IEmailResponse> future = utils.sendMail("[email protected]", "subject", "text"); console.getOut().println("Waiting on response"); IEmailResponse response = future.get(30, TimeUnit.SECONDS); if (response.isError()) { console.getErr().println(response); } else { console.getOut().println("e-mail successfully sent!"); } } catch (Exception e) { e.printStackTrace(console.getErr()); } But the error , is it still need to import the library? What code should I add? |
Page 1 of 1 |