Post subject: strategy on remote server, how to send email?
Post rating: 0
Posted: Thu 12 Dec, 2013, 03:57
User rating: 0
Joined: Wed 28 Mar, 2012, 06:41 Posts: 25 Location: China, Beijing
in wiki:https://www.dukascopy.com/wiki/#Send_e-mail
@Library("C:/temp/mail.jar") public class TestMail implements IStrategy {
coding in this way library only in local computer. it works well ..but remote run will not work.. how to send email.when I start strategy on remote server
tcsabina
Post subject: Re: strategy on remote server, how to send email?
If I am not mistaken, you cannot have another file (library in this case) on the remote platform, only the strategy file. I am sure that there are topics on the forum where this question is asked (and answered properly), so make some research .
hebasto
Post subject: Re: strategy on remote server, how to send email?
Place your mail.jar file in the strategy files' directory on your machine. To find this default directory on your machine use the method IContext.getFilesDir. Use such annotation:
@Library("mail.jar")
You must not use the @RequiresFullAccess annotation.