|
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
t_vijay
Joined: 18 Jan 2011 Posts: 2 Country: India |
|
Mail Object in Javascript file |
|
I am trying to call Mail.sendWithAttachment in sample.js file (Javascript file). Throws error as uncaught JavaScript runtime exception: ReferenceError: "Mail" is not defined.
Do we need to create object or reference any jar file for accessing Mail object functionality. I am running this sample.js file from Unix in command line.
java -classpath "js.jar:jscheduler.jar:mail.jar" org.mozilla.javascript.tools.shell.Main sample.js
Any suggestion please??
|
|
Wed Jan 19, 2011 1:33 am |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7849
|
|
|
|
Hi,
You cannot use 24x7 extensions in off-line JS scipts, I mean Mail, Process, FTP, Database, File, etc... The extensions are only available to JS scripts executed by the JS engine hosted whitin 24x7.
|
|
Wed Jan 19, 2011 2:04 am |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|