Forum

 
Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Add a New Topic Reply to Post
UserPost

1:10 am
April 14, 2009


Dj Daddylanz

Guest

Is this possible:

SendEmail.exe -s smtp.1and1.com -xu admin@xxx.com -xp password -u @AUTHOR@ -t @SUBJECT@ -f TEST@MAILER.COM -m "TEST1"

or

SendEmail.exe -s smtp.1and1.com:25 -xu admin@xxx.com -xp password -u @AUTHOR@ -t @SUBJECT@ -f TEST@MAILER.COM -m @MESSAGEBODY@

Trying to use line command mail client to process mail for flexible outside of client

getting errors

Error: uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIProcess.init]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: chrome://filtaquilla/content/filtaquilla.js :: anonymous :: line 337"  data: no]

1:36 am
April 14, 2009


rkent

Admin

posts 140

The first should be possible as far as I can tell. The error you are getting is complaining that the file cannot be found. I assume it is SendEMail.exe that is not found. Perhaps you need a fully qualified file path.

For the second, @MESSAGEBODY@ is not supported. I know that sucks, but the message body is not generally available at filter run time without a complex async operation. I hope to eventually try to make that work. There is also the secondary problem that the size of messages can be much larger than is normally permitted as part of a command line.

1:37 am
April 14, 2009


Dj Daddylanz

Guest

Further more…

I can not RUN file  cmd.exe  or  xxx.bat…in order to execute a line command client…

Please help..

TB will crash I try teh top two method

1:40 am
April 14, 2009


Dj Daddylanz

Guest

In that case..do you forsee as Save File function…

Then using and external client that message body envelop can be forwarded..

I tried the qualified path, it works..but can not pass parameters to SendEmail.exe with commas…

So I tried passing parameters into a batch file since is accept %1, %2  list

TB crashes

1:46 am
April 14, 2009


Dj Daddylanz

Guest

If I runfile  sendemail.exe by itself..no errors…no dos windows pop…it is a line command client.

How to I pass parameters to it?

It parses dashed parametes…

2:09 am
April 14, 2009


rkent

Admin

posts 140

xxx.bat will not work, since the RUN command is running a process. xxx.bat is some kind of text file, not a process. The .exe files should run.

As to passing parameters, you need to understand that when you are entering a command line into the RUN filter action, you are not entering a line just like you would give on the command prompt. The commas in the RUN command are being processed by my software, not the cmd.exe program. The individual fields (which are command-delimited) are then passed into the generic Mozilla code to run a process, as an array of parameters.

I realize that is somewhat cryptic, but this command is really only intended to be used by advanced users (of which you are probably one). Just try using commas to separate parameters, even though the normal cmd.exe uses spaces for that purpose. Perhaps I should try switching to space delimited, but that will force me then to deal with quoted file names to handle the all-too-common spaces in file names, which is a bit more work.

I suggest that you test the RUN command with something simple like a text editor first.

7:05 pm
April 15, 2009


djdaddylanz

Guest

The .bat file does work but limited.  I place a one line cmd.exe in the bat fille and trigger the RUN file, and the cmd window will pop.

I will try you suggestion with passing parameters.

Reply to Post

Reply to Topic:
RUN File

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 9