Hello, I'm trying to send e-mail. I've get this code from javadoc from dukascopy.
try {
// Note: not to hold up the strategy execution, consider calling the sending logic from another thread
Future future = utils.sendMail("[email protected]", "Test mail subject", "Test mail \n Bye.");
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());
}
Unfortunately after compilation I get a message:
Quote:
Type mismatch: cannot convert from Object to IEmailResponse
Somebody have idea how to solve this problem?