Dukascopy
 
 
Wiki JStore Search Login

How to email
 Post subject: How to email Post rating: 0   New post Posted: Thu 19 Apr, 2018, 07:19 
User avatar

User rating: 0
Joined: Thu 26 Oct, 2017, 15:08
Posts: 5
Location: ChinaChina
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?


 

Jump to:  

  © 1998-2011 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com